/* ============================================================
   Test Desk (TD) — Auth Pages CSS (v4 — vertical, clean)
   File Path : assets/css/auth.css
   ============================================================ */

/* ---------- Page wrap ---------- */
.td-auth-page {
    background: #f5faff;
}

.auth-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ---------- Hero ---------- */
.auth-hero {
    text-align: center;
    padding: 20px 12px 24px;
}
.auth-hero-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 8px;
}
.auth-hero-title {
    font-size: 22px;
    font-weight: 800;
    color: #0b4a85;
    margin: 0 0 6px;
    line-height: 1.3;
}
.auth-hero-sub {
    font-size: 14px;
    color: #5a7a95;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Already logged in notice ---------- */
.auth-already-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e7f8f0;
    border: 1px solid #b8e5cf;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #16784f;
}
.auth-already-icon { font-size: 20px; }
.auth-already-text { line-height: 1.5; }
.auth-already-text a {
    color: #0b5cab;
    font-weight: 700;
    text-decoration: none;
}
.auth-already-text a:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.auth-step {
    animation: tdFadeIn 0.3s ease;
}
@keyframes tdFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Google button ---------- */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    color: #3c4043;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.08);
}
.google-btn:hover {
    background: #f8f9fa;
    border-color: #c6cace;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.15);
}
.google-btn:active {
    transform: scale(0.99);
}
.google-btn-icon { flex-shrink: 0; }

/* ---------- "OR" separator ---------- */
.auth-or-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #6a7c92;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.auth-or-sep::before,
.auth-or-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbe9f4;
}

/* ---------- Manual register button ---------- */
.auth-manual-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: #f8fbfe;
    border: 1.5px solid #cbe3f6;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0b5cab;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.auth-manual-btn:hover {
    background: #eef6fd;
    border-color: #a8d3ee;
}

/* ---------- Chooser box ---------- */
.chooser-box {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 6px 20px rgba(60, 64, 67, 0.1);
}
.chooser-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 16px;
}
.chooser-head-title {
    font-size: 16px;
    font-weight: 700;
    color: #202124;
}

.chooser-accounts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.chooser-account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: 1px solid #eef2f6;
}
.chooser-account:hover {
    background: #f5f7fa;
    border-color: #dadce0;
}
.chooser-account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4aa3e0, #0b5cab);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chooser-account-info {
    flex: 1;
    min-width: 0;
}
.chooser-account-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chooser-account-email {
    font-size: 13px;
    color: #5f6368;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chooser-other {
    border-top: 1px solid #eef2f6;
    padding-top: 16px;
}
.chooser-other-label {
    font-size: 13px;
    font-weight: 700;
    color: #5f6368;
    margin-bottom: 10px;
}
.chooser-input {
    margin-bottom: 12px;
}
.chooser-next-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #4aa3e0, #0b5cab);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(11, 92, 171, 0.28);
}
.chooser-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 92, 171, 0.35);
}
.chooser-back-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 14px 0 0;
    color: #5f6368;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.chooser-back-btn:hover {
    color: #202124;
}

/* ---------- Form back button ---------- */
.form-back-wrap {
    margin-bottom: 14px;
}
.form-back-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 6px 12px 6px 0;
    color: #0b5cab;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.form-back-btn:hover {
    color: #084a92;
    text-decoration: underline;
}

/* ---------- Auth form ---------- */
.auth-form {
    background: #ffffff;
    border: 1px solid #dbe9f4;
    border-radius: 16px;
    padding: 22px 20px 24px;
    box-shadow: 0 4px 16px rgba(20, 80, 140, 0.06);
}

.auth-field {
    display: block;
    margin-bottom: 16px;
}
.auth-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2b45;
    margin-bottom: 6px;
    line-height: 1.4;
}
.auth-hint {
    display: inline;
    font-size: 12px;
    font-weight: 500;
    color: #6a7c92;
}
.auth-req { color: #d94a4a; font-weight: 800; }

.auth-input {
    display: block;
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    font-family: inherit;
    color: #1a2b45;
    background: #ffffff;
    border: 1.5px solid #dbe9f4;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.auth-input::placeholder {
    color: #a7b8cb;
}
.auth-input:focus {
    outline: none;
    border-color: #4aa3e0;
    box-shadow: 0 0 0 3px rgba(74, 163, 224, 0.15);
}
.auth-input:disabled,
.auth-input[readonly] {
    background: #f5f9fd;
    color: #33475f;
    cursor: not-allowed;
}

/* Input group (+91) */
.auth-input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #dbe9f4;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}
.auth-input-group:focus-within {
    border-color: #4aa3e0;
    box-shadow: 0 0 0 3px rgba(74, 163, 224, 0.15);
}
.auth-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f1f7fd;
    color: #0b5cab;
    font-weight: 700;
    font-size: 15px;
    border-right: 1px solid #dbe9f4;
}
.auth-input-group .auth-input {
    border: none;
    border-radius: 0;
    flex: 1;
    padding-left: 12px;
}
.auth-input-group .auth-input:focus {
    box-shadow: none;
}

/* Checkbox */
.auth-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 14px;
    cursor: pointer;
    user-select: none;
}
.auth-checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0b5cab;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-checkbox-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #33475f;
    line-height: 1.4;
}

/* Submit button */
.auth-submit {
    display: block;
    width: 100%;
    padding: 15px 18px;
    background: linear-gradient(135deg, #4aa3e0, #0b5cab);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(11, 92, 171, 0.3);
    margin-top: 6px;
}
.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 92, 171, 0.35);
}
.auth-submit:active {
    transform: translateY(0);
}
.auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Already registered text */
.auth-alt {
    text-align: center;
    margin-top: 18px;
    font-size: 13.5px;
    color: #5a7a95;
}
.auth-alt a {
    color: #0b5cab;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}
.auth-alt a:hover {
    text-decoration: underline;
}

/* Email locked hint */
.email-locked-hint {
    display: block;
    margin-top: 6px;
    color: #16784f !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .auth-wrap {
        padding: 16px 14px 32px;
    }
    .auth-hero {
        padding: 16px 8px 20px;
    }
    .auth-hero-title { font-size: 20px; }
    .auth-hero-sub { font-size: 13.5px; }
    .auth-form { padding: 18px 16px 20px; }
    .chooser-box { padding: 18px 16px; }
    .auth-input { font-size: 16px; } /* iOS zoom prevention */
}
