/* Enhanced Auth Styles - White Background */
.auth-page {
    --auth-primary: #fd1415;
    --auth-primary-dark: #d10f10;
    --auth-primary-light: #ff4647;
    --auth-secondary: #2d1b69;
    --auth-secondary-dark: #1e1247;
    --auth-secondary-light: #4338ca;
    --auth-accent: #f97316;
    --auth-accent-light: #fb923c;
    --auth-dark: #1e293b;
    --auth-darker: #0f172a;
    --auth-light: #fef2f2;
    --auth-gray: #64748b;
    --auth-gray-light: #f1f5f9;
    --auth-gray-dark: #475569;
    --auth-danger: #fd1415;
    --auth-success: #059669;
    --auth-warning: #f59e0b;
    --auth-shadow: 0 10px 15px -5px rgb(253 20 21 / 0.08), 0 4px 6px -4px rgb(253 20 21 / 0.05);
    --auth-shadow-lg: 0 15px 30px -10px rgb(253 20 21 / 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    min-height: 100vh;
}

.auth-page {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 14px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--auth-shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 640px;
    min-height: 360px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(253, 20, 21, 0.1);
}

.hero-section {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 60%, var(--auth-secondary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #fecaca, #fed7d7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 0.7rem;
    opacity: 0.95;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #fecaca;
}

.features-list {
    list-style: none;
    text-align: left;
    padding-left: 0.5rem;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    opacity: 0.9;
    font-size: 0.65rem;
    color: #fecaca;
}

.features-list li i {
    margin-right: 0.4rem;
    color: var(--auth-accent);
    width: 12px;
    font-size: 10px;
}

.form-section {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: white;
}

.toggle-header {
    display: flex;
    background: var(--auth-gray-light);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgb(253 20 21 / 0.06);
    border: 1px solid rgba(253, 20, 21, 0.1);
}

.toggle-btn {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    color: var(--auth-gray);
    font-family: inherit;
}

.toggle-btn.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 50%, var(--auth-accent) 100%);
    border-radius: 9px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--auth-shadow);
    z-index: 1;
}

.toggle-slider.signup {
    transform: translateX(100%);
}

.form {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.form.active {
    display: block;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.welcome-text {
    margin-bottom: 1rem;
}

.welcome-text h2 {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
    margin-top: 0;
}

.welcome-text p {
    color: var(--auth-gray);
    font-size: 11px;
    margin: 0;
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--auth-dark) 0%, var(--auth-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 11px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px;
    padding-right: 36px;
    border: 2px solid var(--auth-gray-light);
    border-radius: 10px;
    font-size: 12px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(253, 20, 21, 0.1);
    background: var(--auth-light);
}

.input-wrapper input.error {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 3px rgba(253, 20, 21, 0.1);
    background: #fef2f2;
}

.input-wrapper input.success {
    border-color: var(--auth-success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: #f0fdf4;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-gray);
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 12px;
    z-index: 5;
}

.input-wrapper input:focus + .input-icon {
    color: var(--auth-primary);
}

.password-toggle {
    cursor: pointer;
}

.error-message {
    color: var(--auth-danger);
    font-size: 10px;
    margin-top: 0.3rem;
    display: none;
    animation: fadeIn 0.2s ease;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.success-message {
    color: var(--auth-success);
    font-size: 10px;
    margin-top: 0.3rem;
    display: none;
    animation: fadeIn 0.2s ease;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.password-strength {
    margin-top: 0.3rem;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-meter {
    height: 3px;
    background: var(--auth-gray-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--auth-primary) 0%, var(--auth-accent) 100%);
}

.strength-text {
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.forgot-password {
    text-align: right;
    margin-bottom: 0.8rem;
}

.forgot-password a {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forgot-password a:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
    text-decoration-color: var(--auth-accent);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 50%, var(--auth-accent) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--auth-shadow);
    z-index: 1;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(253, 20, 21, 0.3);
}

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

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

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.terms {
    text-align: center;
    font-size: 9px;
    color: var(--auth-gray);
    line-height: 1.4;
}

.terms a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms a:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 11px;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
    max-width: 260px;
    box-shadow: var(--auth-shadow-lg);
}

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

.notification.success {
    background: linear-gradient(135deg, var(--auth-success) 0%, #047857 100%);
}

.notification.error {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
}

.notification.warning {
    background: linear-gradient(135deg, var(--auth-accent) 0%, #ea580c 100%);
}

.notification.info {
    background: linear-gradient(135deg, var(--auth-secondary) 0%, var(--auth-secondary-dark) 100%);
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 300px;
        min-height: auto;
    }

    .hero-section {
        padding: 20px 16px;
        order: 2;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.65rem;
    }

    .form-section {
        padding: 20px 16px;
        order: 1;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 8px;
        font-size: 13px;
    }

    .auth-container {
        max-width: 100%;
    }

    .form-section,
    .hero-section {
        padding: 16px 12px;
    }
}

/* Add these styles to your existing auth.css */

/* Google Sign-In Wrapper */
.google-signin-wrapper {
    margin-bottom: 1rem;
    width: 100%;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--auth-gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-gray-light);
}

.divider span {
    padding: 0 0.6rem;
    font-size: 10px;
    font-weight: 500;
    color: var(--auth-gray-dark);
    background: white;
}

/* Custom Google Button Styling (if needed for consistency) */
.google-signin-wrapper iframe {
    border-radius: 10px !important;
}

/* Adjust form spacing when Google button is present */
.form form {
    margin-top: 0;
}

/* Loading state for Google button */
.google-signin-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.google-signin-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--auth-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .divider span {
        font-size: 9px;
        padding: 0 0.5rem;
    }
}

/* Add these styles to your existing auth.css */

/* Google Sign-In Button */
.google-btn {
    width: 100%;
    background: white;
    border: 2px solid var(--auth-gray-light);
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    color: var(--auth-dark);
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.google-btn:hover {
    background: var(--auth-gray-light);
    border-color: var(--auth-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.google-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--auth-gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-gray-light);
}

.divider span {
    padding: 0 0.6rem;
    font-size: 10px;
    font-weight: 500;
    color: var(--auth-gray-dark);
    background: white;
}

/* Loading state for Google button */
.google-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.google-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: var(--auth-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .divider span {
        font-size: 9px;
        padding: 0 0.5rem;
    }
    
    .google-btn {
        padding: 10px;
        font-size: 11px;
    }
    
    .google-btn svg {
        width: 16px;
        height: 16px;
    }
}

