/* ============================================================
   DATV-Express Website — auth.css
   Login, register, verify, forgot/reset password, change password
   ============================================================ */

.auth-wrap {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.25rem 2rem;
}

.auth-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--datv-blue);
    margin-bottom: 0.3rem;
}

.auth-card .auth-sub {
    color: var(--datv-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.form-field {
    margin-bottom: 1.15rem;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--datv-text);
    margin-bottom: 0.35rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--datv-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus {
    outline: none;
    border-color: var(--datv-blue);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.12);
}

.form-field .field-error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #c53030;
}

.auth-card .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem;
}

.auth-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--datv-muted);
}

.auth-links a { color: var(--datv-accent); font-weight: 600; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--datv-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius);
    background: #fff;
    color: var(--datv-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    text-decoration: none;
}

.oauth-btn:hover {
    background: var(--datv-light);
    border-color: #a0aec0;
    text-decoration: none;
}

.oauth-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Password field wrapper (for eye toggle) */
.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--datv-muted);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
