.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3ebff 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(56, 66, 77, 0.08);
    padding: 40px 35px;
}

.auth-card.auth-card-wide {
    max-width: 560px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
}

.auth-brand-logo:hover .auth-brand-name {
    color: #D2AFFF;
}

.auth-brand-icon {
    display: inline-flex;
    line-height: 0;
}

.auth-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #38424D;
    letter-spacing: 2px;
    line-height: 1;
}

.auth-brand img {
    height: 42px;
    margin-bottom: 12px;
}

.auth-brand h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-brand p {
    margin: 0;
    color: #747E88;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    color: #38424D;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #e1e5ea;
    border-radius: 5px;
    padding: 0 15px;
    font-size: 15px;
    color: #38424D;
    transition: border-color 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #D2AFFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 175, 255, 0.15);
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #747E88;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #D2AFFF;
    background: rgba(210, 175, 255, 0.08);
    outline: none;
}

.password-toggle i {
    font-size: 16px;
}

.auth-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.auth-form .main-btn {
    width: 100%;
    border: none;
}

.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    font-weight: 500;
}

.auth-back-home {
    margin-top: 18px;
    text-align: center;
}

.auth-back-home .main-btn {
    width: 100%;
    display: inline-block;
    text-decoration: none;
}

.alert-auth {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-auth-success {
    background: #edf7ed;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.alert-auth-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-auth-info {
    background: #eef5ff;
    color: #1d4f91;
    border: 1px solid #c9ddff;
    word-break: break-all;
}

.auth-row {
    display: flex;
    gap: 15px;
}

.auth-row .form-group {
    flex: 1;
}

@media (max-width: 575px) {
    .auth-card {
        padding: 30px 22px;
    }

    .auth-row {
        flex-direction: column;
        gap: 0;
    }
}
