/* auth.css - Enhanced Authentication Pages Styling with Mobile Refinements */

:root {
    --primary-green: #86efac;
    --primary-green-light: #bbf7d0;
    --primary-green-soft: #dcfce7;
    --primary-green-dark: #5ed088;
    --primary-green-darker: #3aa561;
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #fafbfc;
    --bg-input: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-light: #e2e8f0;
    --border-lighter: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-green: 0 10px 30px -10px rgba(134, 239, 172, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    
    /* Mobile-specific variables */
    --mobile-padding: clamp(1rem, 5vw, 2rem);
    --mobile-radius: 1rem;
    --touch-target: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Container Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at top left, rgba(134, 239, 172, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-cream) 0%, rgba(134, 239, 172, 0.02) 100%);
    position: relative;
}

/* Background Pattern */
.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(134, 239, 172, 0.03) 35px, rgba(134, 239, 172, 0.03) 70px);
    pointer-events: none;
}

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Panel */
.auth-form-panel {
    background-color: transparent;
    padding: 3rem 1rem;
    position: relative;
    align-self: flex-start;
}

.auth-form-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, var(--primary-green-soft) 0%, transparent 70%),
                      radial-gradient(circle at 80% 80%, var(--primary-green-light) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
}

.auth-content {
    width: 100%;
    max-width: 460px;
    padding: 1rem 0;
}

/* Brand Section */
.brand-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-name {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 400;
}

/* Auth Card */
.auth-card {
    background: var(--bg-white);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-lighter);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-green-light) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.auth-title {
    font-size: clamp(1.5rem, 4vw, 1.575rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #53a53a;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* Form Styling */
.auth-form {
    margin-bottom: 1.25rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3rem;
    font-size: 1rem;
    border: 1.5px solid var(--border-lighter);
    border-radius: 0.75rem;
    background-color: var(--bg-input);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: bottom;
    min-height: var(--touch-target);
}

.form-input:hover {
    border-color: var(--border-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.15);
    background-size: 100% 2px;
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    background-color: transparent;
    padding: 0 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.65rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green-dark);
    background-color: var(--bg-white);
    padding: 0 0.5rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-green-dark);
    background-color: var(--bg-gray);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    user-select: none;
    min-height: var(--touch-target);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 1.25rem;
    width: 1.25rem;
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-lighter);
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-green-light);
    background-color: var(--primary-green-soft);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.forgot-link {
    color: var(--primary-green-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    margin: -0.5rem;
}

.forgot-link:hover {
    color: var(--primary-green-darker);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green-darker) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    min-height: var(--touch-target);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.submit-btn:hover::before {
    opacity: 1;
}

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

.submit-btn .btn-text {
    position: relative;
    z-index: 1;
}

.submit-btn.loading {
    color: transparent;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    z-index: 2;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider span {
    background-color: var(--bg-white);
    padding: 0 1.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
}

.divider.small {
    margin: 1rem 0;
}

.divider.small span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: lowercase;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-lighter);
    border-radius: 0.75rem;
    background-color: var(--bg-input);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-input-wrapper:hover {
    border-color: var(--border-light);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-green);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.15);
}

.phone-prefix {
    padding: 1rem 0.75rem 1rem 1rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-right: 1px solid var(--border-lighter);
    white-space: nowrap;
}

.phone-input-wrapper .phone-input {
    border: none;
    background: transparent;
    padding-left: 0.75rem;
    flex: 1;
}

.phone-input-wrapper .phone-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background-size: 0;
}

.phone-label {
    left: 4.5rem !important;
}

.phone-input-wrapper:focus-within ~ .phone-label,
.phone-input-wrapper .phone-input:not(:placeholder-shown) ~ .phone-label {
    top: -0.65rem !important;
    left: 1rem !important;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green-dark);
    background-color: var(--bg-white);
    padding: 0 0.5rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border: 1.5px solid var(--border-lighter);
    background-color: var(--bg-input);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: var(--touch-target);
}

.social-btn i {
    font-size: 1.25rem;
}

.social-btn:hover {
    border-color: var(--primary-green-light);
    background-color: var(--primary-green-soft);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(134, 239, 172, 0.2);
}

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

.google-btn {
    color: var(--text-primary);
}

.google-btn i {
    color: #ea4335;
}

.apple-btn {
    color: var(--text-primary);
}

.apple-btn i {
    color: #000000;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.switch-link {
    color: var(--primary-green-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.switch-link:hover {
    color: var(--primary-green-darker);
    text-decoration: underline;
}

/* Image Panel */
.auth-image-panel {
    position: relative;
    background-color: var(--primary-green-light);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-image {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(134, 239, 172, 0.5) 0%, rgba(34, 197, 94, 0.5) 100%);
    z-index: 1;
}

/* Image Content with Floating Cards */
.image-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.image-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.95;
    color: white;
    text-align: center;
    max-width: 400px;
    margin-bottom: 3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Floating Info Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.info-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.info-card:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

.info-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.info-card.card-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.info-card.card-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.info-card-icon {
    font-size: 1.5rem;
    color: var(--primary-green-dark);
    margin-bottom: 0.5rem;
}

.info-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.info-card-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-1deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
    75% {
        transform: translateY(-10px) rotate(-0.5deg);
    }
}

/* Terms Link in Checkbox */
.terms-link {
    color: var(--primary-green-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--primary-green-darker);
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem;
    margin: -0.5rem;
}

.auth-footer a:hover {
    color: var(--primary-green-dark);
}

.separator {
    margin: 0 0.75rem;
    color: var(--text-light);
}

/* Mobile Hero Section - Hidden by default */
.mobile-hero {
    display: none;
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 250px;
    overflow: hidden;
    margin-bottom: 6rem;
}

.mobile-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimize image loading */
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}

.mobile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(134, 239, 172, 0.6) 0%, 
        rgba(34, 197, 94, 0.8) 60%,
        rgba(248, 249, 250, 1) 100%);
    z-index: 1;
}

.mobile-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.mobile-hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-hero-subtitle {
    font-size: clamp(0.875rem, 3vw, 1rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
}

.mobile-feature-strip {
    display: none;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.mobile-feature-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0rem;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced Responsive Design */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .auth-image-panel {
        flex: 0.8;
    }
    
    .floating-cards {
        transform: scale(0.9);
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* Show mobile hero section */
    .mobile-hero {
        display: block;
    }
    
    /* Hide desktop image panel */
    .auth-image-panel {
        display: none;
    }
    
    .auth-form-panel {
        flex: 1;
        display: flex;
        align-items: flex-start;
        padding-top: 0;
        background: var(--bg-white);
        border-radius: 3rem 3rem 0 0;
        margin-top: -3rem;
        position: relative;
        z-index: 10;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .auth-content {
        padding-top: 2rem;
    }
    
    .mobile-feature-strip {
        display: flex;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .mobile-hero {
        height: 30vh;
        min-height: 220px;
    }
    
    .auth-card {
        border-radius: var(--mobile-radius);
        margin: 0 var(--mobile-padding);
    }
    
    .social-login {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .social-btn span {
        display: none;
    }
    
    .social-btn {
        flex: 1;
        padding: 0.75rem;
    }
    
    .social-btn i {
        font-size: 1.5rem;
    }
}

/* Large Phones */
@media (max-width: 640px) {
    .mobile-hero {
        height: 28vh;
        min-height: 200px;
    }
    
    .auth-form-panel {
        padding: 0;
    }
    
    .auth-content {
        padding: 1.5rem 0;
    }
    
    .auth-card {
        border-radius: var(--mobile-radius);
        box-shadow: none;
        border: none;
        margin: 0 1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .checkbox-container {
        justify-content: flex-start;
    }
    
    .forgot-link {
        display: block;
        text-align: center;
        padding: 0.75rem;
    }
}

/* Standard Phones */
@media (max-width: 480px) {
    .mobile-hero {
        height: 25vh;
        min-height: 180px;
    }
    
    .mobile-hero-title {
        font-size: 1.5rem;
    }
    
    .mobile-feature-strip {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
    }
    
    .brand-section {
        margin-bottom: 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .social-btn span {
        display: inline;
    }
    
    .auth-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
}

/* Small Phones */
@media (max-width: 375px) {
    .mobile-hero {
        height: 23vh;
        min-height: 160px;
    }
    
    .auth-card {
        margin: 0 0.75rem;
        padding: 1.25rem;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .mobile-hero {
        height: 50vh;
    }
    
    .auth-form-panel {
        padding-top: 1rem;
    }
    
    .brand-section {
        margin-bottom: 0.5rem;
    }
    
    .auth-card {
        padding: 1rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
}

/* Safe Area Support for Modern Devices */
@supports (padding: max(0px)) {
    .auth-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .auth-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-cards {
        display: none;
    }
}

/* Dark Mode Support (Optional Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-input:focus {
        outline: 3px solid var(--primary-green-dark);
        outline-offset: 2px;
    }
    
    .submit-btn:focus {
        outline: 3px solid white;
        outline-offset: -3px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .password-toggle,
    .forgot-link,
    .switch-link,
    .auth-footer a {
        padding: 0.75rem;
        margin: -0.75rem;
    }
    
    .submit-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .social-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Toast Notifications - Mobile Optimized */
.error-toast,
.success-toast,
.info-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.error-toast {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-toast {
    background: linear-gradient(135deg, var(--primary-green-soft) 0%, var(--primary-green-light) 100%);
    color: var(--primary-green-darker);
    border: 1px solid var(--primary-green-light);
}

.info-toast {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.error-toast i,
.success-toast i,
.info-toast i {
    font-size: 1.25rem;
}

.error-toast.show,
.success-toast.show,
.info-toast.show {
    transform: translateX(0);
}

@media (max-width: 640px) {
    .error-toast,
    .success-toast,
    .info-toast {
        top: auto;
        bottom: 2rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Ripple Effect for Buttons */
.submit-btn,
.social-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::after,
.social-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:active::after,
.social-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Footer - Glass Effect */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(134, 239, 172, 0.1);
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add icons before each link */
.auth-footer a:nth-child(1)::before {
    content: "📜";
    font-size: 1rem;
}

.auth-footer a:nth-child(3)::before {
    content: "🔒";
    font-size: 1rem;
}

.auth-footer a:nth-child(5)::before {
    content: "💬";
    font-size: 1rem;
}

.auth-footer a:hover {
    color: var(--primary-green-dark);
    background: var(--primary-green-soft);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .auth-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .auth-footer a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .separator {
        display: none;
    }
}