/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* The Secret Sauce: Put the background on the HTML/Body directly */
html, body {
    height: 100%;
    width: 100%;
    background-image: url('../images/logo-silk.png');
    background-image: image-set(
        url('../images/logo-silk.webp') type('image/webp'),
        url('../images/logo-silk.png') type('image/png')
    );
    background-repeat:no-repeat;
    background-position:center 20%;
    background-size: cover;
    background-attachment: fixed;
    background-color: #f4f7f6;
}

/* Centering Wrapper */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
}


/* Glassmorphism Card */
.login-card {
    background: rgba(255, 255, 255, 0.15); /* Transparency to show silk */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    
    width: 100%;
    max-width: 420px;
    padding: 20px 10px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 35px;
}

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    font-size: 14px;
}

.login-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 14px;
    word-break: break-word;
}

.login-info {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 14px;
}

.reset-link-box {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed #93c5fd;
    text-align: left;
}

.reset-link-box strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
}

.reset-link-box a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
    font-size: 14px;
}

/* Input Styles */
.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

.input-group input:focus {
    border-color: #3174e5;
}

/* =========================
   INPUT GROUP FIX
========================= */

.input-group select,
.input-group input[list] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(10px);
}

/* Dropdown arrow styling */
.input-group select {
    appearance: none;
    cursor: pointer;
}

/* Focus effect */
.input-group select:focus,
.input-group input[list]:focus {
    border: 1px solid #00c6ff;
    box-shadow: 0 0 8px rgba(0,198,255,0.4);
}

/* Option styling (limited support) */
select option {
    color: #000;
}

.pw-dots {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 18px;
}

/* Button & Spinner */
.btn-login {
    width: 100%;
    padding: 16px;
    background: #3174e5;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: #2563eb;
}

.btn-login:disabled {
    background: #84aef2;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer-text {
    margin-top: 25px;
    font-size: 14px;
    color: #444;
}

.footer-text a {
    color: #3174e5;
    text-decoration: none;
    font-weight: 700;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    color: #444;
    font-weight: 700;
    transition: 0.3s;
}

.google-btn img {
    width: 20px;
}

.google-btn:hover {
    background: #f5f5f5;
}

/* LOGIN TABS */

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.login-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    border-radius: 12px;
    transition: background 0.25s ease, color 0.25s ease;
}

.login-tabs .tab.active {
    color: #0f172a;
    background: linear-gradient(135deg, rgba(49, 116, 229, 0.12), rgba(255, 122, 0, 0.12));
}

.tab-form {
    display: none;
}

.tab-form.active {
    display: block;
}

.forgot {
    text-align: right;
    margin: -2px 0 14px;
}

.forgot a {
    color: #3174e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
