* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* ... (keep previous styles the same until .auth-card) */

.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    z-index: 1;
    
}

.logo-container {
    text-align: center;
}

.logo {
    width: 300px;
    height: 125px;
    padding: 12px;
    display: inline-block;
}
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    color: #212529;
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: #6c757d;
    font-size: 14px;
}

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

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #212529;
    font-size: 15px;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #1976d2;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: #1565c0;
}

.social-auth {
    margin: 32px 0;
    text-align: center;
}

.social-auth p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: rgba(25,118,210,0.1);
    border-color: #1976d2;
    color: #1976d2;
}

.switch-form {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.switch-form a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.switch-form a:hover {
    color: #1565c0;
}


/* Form transition styles */
.form-container {
    position: relative;
    min-height: 225px; /* Default login height */
    transition: min-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.login-form,
.signup-form {
    position: absolute;
    width: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.login-form.active,
.signup-form.active {
    opacity: 1;
    visibility: visible;
}

.forgot-password {
    text-align: right;
    margin: -10px 0 15px;
}

.forgot-password a {
    color: #1976d2;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #1565c0;
}

.back-to-login {
    text-align: center;
    margin-top: 15px;
}

/* Add forgot password form styling */
.forgot-password-form {
    position: absolute;
    width: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.forgot-password-form.active {
    opacity: 1;
    visibility: visible;
}