/* Unified Auth Pages Design System */
/* Dark theme - matches dashboard-v2 */

:root {
    /* Brand Colors */
    --brand-primary: #10b981;
    --brand-primary-light: #34d399;
    --brand-primary-dark: #059669;
    --brand-accent: #3b82f6;
    --brand-accent-light: #60a5fa;

    /* Backgrounds - Dark */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0a0a0a;
    --bg-card-border: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;

    /* States */
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.2);
    --error-text: #ef4444;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.2);
    --success-text: #10b981;
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-border: rgba(59, 130, 246, 0.2);
    --info-text: #3b82f6;

    /* Input */
    --input-bg: #0a0a0a;
    --input-border: rgba(255, 255, 255, 0.06);
    --input-border-focus: rgba(16, 185, 129, 0.5);
    --input-placeholder: #52525b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #000000;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    z-index: 10;
}

.auth-wrapper {
    width: 100%;
    max-width: 448px;
}

/* Branding */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease-out;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--text-primary);
}

.auth-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon i {
    color: #ffffff;
    font-size: 20px;
}

.auth-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-title-highlight {
    color: #10b981;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.auth-subtitle a {
    color: #10b981;
    text-decoration: none;
}

.auth-subtitle a:hover {
    color: #34d399;
}

/* Card */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 32px;
    animation: slideIn 0.8s ease-out;
}

/* Messages */
.auth-alert {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.auth-alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.auth-alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.auth-alert-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-label i {
    margin-right: 6px;
    color: var(--text-tertiary);
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.auth-input::placeholder {
    color: var(--input-placeholder);
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--input-placeholder);
    pointer-events: none;
}

.auth-input-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--input-placeholder);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.auth-input-toggle:hover {
    color: #10b981;
}

.auth-input-with-toggle {
    padding-right: 48px;
}

.auth-helper {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-helper-info {
    color: var(--info-text);
}

.auth-helper-info i {
    margin-right: 4px;
}

/* Remember / Forgot */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-remember-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    cursor: pointer;
    accent-color: #10b981;
}

.auth-remember-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.auth-remember-text {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.auth-remember-label:hover .auth-remember-text {
    color: var(--text-secondary);
}

.auth-forgot-link {
    font-size: 13px;
    color: #10b981;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #34d399;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.auth-submit:hover {
    background: #059669;
}

.auth-submit:active {
    transform: scale(0.99);
}

/* Divider */
.auth-divider {
    position: relative;
    margin: 28px 0;
}

.auth-divider-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.auth-divider-border {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-divider-text-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 13px;
}

.auth-divider-text {
    padding: 0 16px;
    background: var(--bg-card);
    color: var(--text-muted);
}

/* Link Button */
.auth-link-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link-button:hover {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.12);
}

.auth-link-button i {
    margin-right: 8px;
}

/* Trust Signals */
.auth-trust {
    margin-top: 28px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.auth-trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-trust-icon-green {
    color: #10b981;
}

.auth-trust-icon-blue {
    color: #3b82f6;
}

/* Field Row (for side-by-side fields) */
.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Trust Badge */
.auth-trust-badge {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-trust-icon {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-trust-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-trust-text strong {
    font-weight: 600;
    color: #10b981;
}

/* Footer Text */
.auth-footer-text {
    font-size: 12px;
    text-align: center;
    color: var(--text-tertiary);
}

.auth-footer-link {
    color: #10b981;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-link:hover {
    color: #34d399;
}

/* Success State */
.auth-success-state {
    text-align: center;
}

.auth-success-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-success-icon i {
    color: #10b981;
    font-size: 24px;
}

.auth-success-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-success-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Background Elements - Subtle for dark theme */
.auth-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    animation: float-particle 18s infinite;
}

.auth-float-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: floating 8s ease-in-out infinite;
}

.auth-float-blob-1 {
    top: 80px;
    right: 80px;
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.04);
}

.auth-float-blob-2 {
    bottom: 80px;
    left: 80px;
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.03);
    animation-delay: -4s;
}

/* Animations */
@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(80px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .auth-title {
        font-size: 28px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-trust-items {
        flex-direction: column;
        gap: 10px;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
    }
}
