
/* AUTH PAGES — Login / Register */
.auth-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fafafa;
}

.auth-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-card {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.auth-body {
    flex: 1;
}

.auth-body .form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-body .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-body .form-group .input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.auth-body .form-group .input:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.auth-body .form-group .input::placeholder {
    color: #aaa;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 40px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: #333;
}

.form-group-checkbox,
.auth-body .form-group-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
    cursor: pointer;
}

.checkbox-label a {
    color: #000;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.auth-submit-btn:hover {
    background: #222;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-forgot-password {
    margin-bottom: 12px;
}

.auth-forgot-password a,
.auth-register-link a,
.auth-login-link a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-password a:hover,
.auth-register-link a:hover,
.auth-login-link a:hover {
    text-decoration: underline;
}

.auth-register-link,
.auth-login-link {
    font-size: 14px;
    color: #666;
}

.auth-social {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin-bottom: 16px;
}

.auth-divider span {
    background: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #eee;
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-visual {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.auth-visual-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.auth-illustration {
    margin-bottom: 32px;
}

.auth-illustration svg {
    width: 200px;
    height: 200px;
}

.auth-visual-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.auth-visual-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.6;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}

.auth-features li svg {
    flex-shrink: 0;
}

.auth-notification {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.notification-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.login-error-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #FFF1F0;
    border: 1px solid #FFCCC7;
    border-radius: 8px;
    color: #CF1322;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-error-message .error-icon {
    font-size: 16px;
}

.login-spinner {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.login-spinner svg {
    animation: auth-spin 1s linear infinite;
}

@keyframes auth-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-visual {
        display: none;
    }
    .auth-card {
        padding: 32px 24px;
    }
    .auth-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 20px 12px;
    }
    .auth-card {
        padding: 24px 16px;
    }
    .auth-title {
        font-size: 20px;
    }
    .auth-body .form-group .input {
        padding: 10px 14px;
        font-size: 14px;
    }
    .auth-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
