/* Authentication Modal Styles */

/* Color Variables */
:root {
  --primary-color: #064e3b;
  --primary-light: #059669;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root.dark {
    --primary-color: #059669;
    --primary-light: #10b981;
    --accent-color: #fbbf24;
    --accent-light: #fde68a;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #0a0f1c;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(255 255 255 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(255 255 255 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(255 255 255 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(255 255 255 / 0.1);
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.auth-modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 90%;
    max-height: 700px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: var(--transition);
}

.auth-modal-overlay.active .auth-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--text-secondary);
}

.auth-modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

/* Left Side - Form */
.auth-modal-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* Form Header */
.auth-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    margin-bottom: 20px;
}

.auth-logo .logo-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.auth-logo .logo-accent {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent-color);
    letter-spacing: 1px;
}

#authFormTitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

#authFormSubtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.auth-form.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
}

.input-group input::placeholder {
    color: var(--text-light);
}

.validation-icon {
    position: absolute;
    right: 16px;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.input-group.valid .validation-icon {
    opacity: 1;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    z-index: 3;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #10b981;
}

.strength-fill.strong {
    width: 100%;
    background: var(--primary-color);
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}




/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.checkbox-label span:not(.checkmark) {
  margin-left: 6px;
}


.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--primary-light);
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.btn-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Divider */
.form-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.form-divider span {
    background: var(--bg-primary);
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* Social Auth Buttons */
.social-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.social-auth-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.social-auth-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.social-auth-btn.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.social-auth-btn.github:hover {
    border-color: #333;
    color: #333;
}

/* Form Footer */
.auth-form-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-switch-link:hover {
    color: var(--primary-light);
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group .checkbox-label {
    font-size: 14px;
    line-height: 1.5;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.link:hover {
    color: var(--primary-light);
}

/* Right Side - Visual */
.auth-modal-right {
    flex: 1;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-visual-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Enhanced Floating Cards with Layered Hover Effects */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.floating-card:hover ~ .floating-card {
    transform: translateY(0px) scale(0.95);
    opacity: 0.7;
}

/* Main Cards */
.auth-card-1 {
    top: 20%;
    left: 5%;
    width: 280px;
    animation-delay: 0s;
    z-index: 3;
}

.auth-card-2 {
    top: 45%;
    right: 5%;
    width: 240px;
    animation-delay: 2s;
    z-index: 2;
}

.auth-card-3 {
    bottom: 25%;
    left: 10%;
    width: 260px;
    animation-delay: 4s;
    z-index: 1;
}

/* Small Cards - Positioned Above and Below */
.auth-card-small-1 {
    top: 5%;
    right: 25%;
    width: 180px;
    animation-delay: 1s;
    z-index: 2;
    padding: 16px;
}

.auth-card-small-2 {
    bottom: 5%;
    right: 30%;
    width: 160px;
    animation-delay: 3s;
    z-index: 1;
    padding: 16px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Card hover states for siblings */
.floating-card:nth-child(1):hover ~ .floating-card:nth-child(2),
.floating-card:nth-child(1):hover ~ .floating-card:nth-child(3),
.floating-card:nth-child(1):hover ~ .floating-card:nth-child(4),
.floating-card:nth-child(1):hover ~ .floating-card:nth-child(5) {
    transform: translateY(5px) scale(0.95);
    opacity: 0.6;
}

.floating-card:nth-child(2):hover ~ .floating-card:nth-child(1),
.floating-card:nth-child(2):hover ~ .floating-card:nth-child(3),
.floating-card:nth-child(2):hover ~ .floating-card:nth-child(4),
.floating-card:nth-child(2):hover ~ .floating-card:nth-child(5) {
    transform: translateY(5px) scale(0.95);
    opacity: 0.6;
}

.floating-card .card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    transition: var(--transition);
}

.floating-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.floating-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
}

.floating-card:hover h3 {
    color: var(--accent-light);
}

.floating-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    transition: var(--transition);
}

.floating-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

/* Small card specific styles */
.auth-card-small-1 .card-icon,
.auth-card-small-2 .card-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-bottom: 12px;
}

.auth-card-small-1 h3,
.auth-card-small-2 h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.auth-card-small-1 p,
.auth-card-small-2 p {
    font-size: 12px;
}

.security-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
}

.floating-card:hover .badge {
    background: rgba(255, 255, 255, 0.3);
}

.performance-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.performance-stats .stat {
    text-align: center;
}

.performance-stats .number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light);
    transition: var(--transition);
}

.floating-card:hover .performance-stats .number {
    color: white;
    transform: scale(1.1);
}

.performance-stats .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.community-stats {
    margin-top: 12px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-light);
    transition: var(--transition);
}

.floating-card:hover .stat-number {
    color: white;
    transform: scale(1.1);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Partnership CTA */
.partnership-cta {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 20px;
    width: 240px;
    text-align: center;
    animation: pulse 3s ease-in-out infinite;
    z-index: 5;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partnership-cta:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 15;
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

.partnership-cta h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    transition: var(--transition);
}

.partnership-cta:hover h3 {
    color: var(--accent-light);
}

.partnership-cta p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    transition: var(--transition);
}

.partnership-cta:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.btn-partner-cta {
    background: var(--gradient-accent);
    color: var(--text-primary);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.btn-partner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Background Elements */
.auth-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatDot 8s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    left: 20%;
    animation-delay: 3s;
}

.dot-3 {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.8;
    }
}

.floating-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: moveLine 10s linear infinite;
}

.line-1 {
    top: 30%;
    width: 200px;
    animation-delay: 0s;
}

.line-2 {
    top: 70%;
    width: 150px;
    animation-delay: 5s;
}

@keyframes moveLine {
    0% {
        left: -200px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Loading Overlay */
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-loading-content {
    text-align: center;
    color: white;
}

.auth-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

#authLoadingText {
    font-size: 16px;
    font-weight: 500;
}

/* Notifications */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 11000;
    transform: translateX(100%);
    transition: var(--transition);
}

.auth-notification.show {
    transform: translateX(0);
}

.auth-notification.success {
    border-left: 4px solid #10b981;
}

.auth-notification.error {
    border-left: 4px solid #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 18px;
}

.auth-notification.success i {
    color: #10b981;
}

.auth-notification.error i {
    color: #ef4444;
}

#notificationText {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-modal-container {
        width: 95%;
        height: 95%;
        max-height: 600px;
    }
    
    .auth-modal-left {
        padding: 40px 30px;
    }
    
    .auth-modal-right {
        padding: 30px;
    }
    
    .floating-card {
        width: 200px !important;
        padding: 16px;
    }
    
    .auth-card-small-1,
    .auth-card-small-2 {
        width: 140px !important;
        padding: 12px;
    }
    
    .partnership-cta {
        width: 180px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .auth-modal-container {
        flex-direction: column;
        height: 95%;
        max-height: none;
    }
    
    .auth-modal-left {
        flex: 1;
        padding: 30px 20px;
        overflow-y: auto;
    }
    
    .auth-modal-right {
        flex: 0 0 200px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-auth-buttons {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        display: none;
    }
    
    .auth-card-small-1,
    .auth-card-small-2 {
        display: none;
    }
    
    .partnership-cta {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
    
    .auth-bg-elements {
        display: none;
    }
    
    #authFormTitle {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .auth-modal-left {
        padding: 20px 16px;
    }
    
    .auth-modal-right {
        flex: 0 0 150px;
        padding: 16px;
    }
    
    .auth-form-header {
        margin-bottom: 30px;
    }
    
    #authFormTitle {
        font-size: 22px;
    }
    
    .input-group input {
        padding: 14px 14px 14px 44px;
        font-size: 15px;
    }
    
    .btn-auth-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .auth-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .auth-notification.show {
        transform: translateY(0);
    }
}

/* Dark Theme Adjustments */
:root.dark .auth-modal-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

:root.dark .auth-modal-close {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

:root.dark .auth-modal-close:hover {
    background: var(--border-color);
}

:root.dark .input-group input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:root.dark .input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

:root.dark .social-auth-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

:root.dark .social-auth-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

:root.dark .auth-notification {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Animation for form switching */
.auth-form-enter {
    animation: slideInRight 0.3s ease-out;
}

.auth-form-exit {
    animation: slideOutLeft 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Enhanced Card Layer System */
.auth-visual-content:hover .floating-card:not(:hover) {
    transform: translateY(5px) scale(0.95);
    opacity: 0.7;
    filter: blur(1px);
}

/* Card stacking context */
.floating-card:nth-child(1) { z-index: 5; }
.floating-card:nth-child(2) { z-index: 4; }
.floating-card:nth-child(3) { z-index: 3; }
.floating-card:nth-child(4) { z-index: 2; }
.floating-card:nth-child(5) { z-index: 1; }

/* Hover states bring cards to front */
.floating-card:hover {
    z-index: 20 !important;
}

/* Card interaction effects */
.floating-card:hover .card-icon {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Enhanced shadow effects for better depth */
.floating-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.floating-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Card content animation on hover */
.floating-card:hover .performance-stats .stat,
.floating-card:hover .community-stats {
    animation: statsGlow 1s ease-in-out infinite alternate;
}

@keyframes statsGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Partnership CTA enhanced effects */
.partnership-cta:hover .btn-partner-cta {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Card entrance animations */
.floating-card {
    opacity: 0;
    animation: cardEnter 0.8s ease-out forwards;
}

.auth-card-1 { animation-delay: 0.2s; }
.auth-card-2 { animation-delay: 0.4s; }
.auth-card-3 { animation-delay: 0.6s; }
.auth-card-small-1 { animation-delay: 0.8s; }
.auth-card-small-2 { animation-delay: 1.0s; }

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Additional micro-interactions */
.floating-card:active {
    transform: scale(0.98);
}

.floating-card .badge:hover {
    transform: scale(1.1);
}

/* Smooth transitions for all interactive elements */
.floating-card *,
.partnership-cta * {
    transition: var(--transition);
}

/* Focus states for accessibility */
.floating-card:focus-visible,
.partnership-cta:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
}

/* Enhanced gradient backgrounds for cards */
.auth-card-1:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.auth-card-2:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.auth-card-3:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.auth-card-small-1:hover,
.auth-card-small-2:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}