/* DreamGuy Authentication Theme */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg,
            #000080 0%,
            #1e293b 25%,
            #0f172a 50%,
            #55ce63 75%,
            #000080 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Authentication Card */
.auth-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 206, 99, 0.5), transparent);
}

/* Logo and Branding */
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    text-align: center;
}

.logo-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #000080, #55ce63);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 128, 0.25);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #f1f5f9, #000080, #55ce63);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    border-color: #000080;
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.1);
    background: rgba(30, 41, 59, 0.8);
}

.form-input:hover {
    border-color: rgba(71, 85, 105, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #000080, #55ce63);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 128, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 128, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 0, 128, 0.1);
    border-color: #000080;
    color: #e2e8f0;
}

.btn-link {
    background: transparent;
    color: #e2e8f0;
    text-decoration: underline;
    border: none;
    padding: 4px 8px;
    font-size: 13px;
}

.btn-link:hover {
    color: #55ce63;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.checkbox {
    width: 16px;
    height: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox:checked {
    background: linear-gradient(135deg, #000080, #55ce63);
    border-color: #000080;
}

.checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
}

.form-actions.center {
    justify-content: center;
}

.form-actions.end {
    justify-content: flex-end;
}

/* Error Messages */
.error-messages {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 4px;
}

.error-message:last-child {
    margin-bottom: 0;
}

/* Success Messages */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #22c55e;
    font-size: 13px;
}

/* Terms and Links */
.terms-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.terms-text a {
    color: #e2e8f0;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #55ce63;
}

/* Divider */
.divider {
    height: 1px;
    background: rgba(51, 65, 85, 0.3);
    margin: 24px 0;
}

/* Two Factor Authentication */
.two-factor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.recovery-codes {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.recovery-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }
    
    .auth-card {
        padding: 24px;
        border-radius: 12px;
    }
    
    .logo-container {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .two-factor-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #000080;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States */
.form-input:focus,
.checkbox:focus,
.btn:focus {
    outline: 2px solid rgba(0, 0, 128, 0.5);
    outline-offset: 2px;
}

/* Hover Effects */
@media (hover: hover) {
    .auth-card:hover {
        box-shadow: 0 24px 72px rgba(0, 0, 0, 0.4);
    }
    
    .logo-container:hover {
        transform: scale(1.05);
    }
}