/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container */
.login-container {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 32px;
    text-align: center;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    color: #000;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: #FCD34D;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* Signup page - indicator under Sign Up tab */
.tab-indicator.signup-active {
    left: 50%;
    transform: translateX(-40px);
}

/* Signin page - indicator under Sign In tab */
.tab-indicator.signin-active {
    left: 57%;
    transform: translateX(-120px);
}

/* Form */
.login-form {
    margin-bottom: 24px;
}

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

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #8B5CF6;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #8B5CF6;
}

/* Error Message */
.error-message {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

/* Sign In Button */
.signin-btn {
    width: 100%;
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.signin-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.signin-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
    color: #9CA3AF;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E7EB;
}

.divider span {
    background: white;
    padding: 0 16px;
}

/* Google Button */
.google-btn {
    width: 100%;
    background: white;
    border: 2px solid #E5E7EB;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.google-btn:hover {
    border-color: #8B5CF6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Sign Up Link */
.signup-link {
    font-size: 14px;
    color: #6B7280;
}

.signup-link a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .logo-image {
        height: 50px;
        max-width: 160px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .signin-btn,
    .google-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
