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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-mode .auth-card {
    background: #34495e;
    color: white;
}

.dark-mode .auth-card h1 {
    color: white;
}

.dark-mode .auth-form input {
    background: #2c3e50;
    color: white;
    border-color: #34495e;
}

.dark-mode .auth-form input:focus {
    border-color: #667eea;
}

.dark-mode .auth-tabs {
    background: #2c3e50;
}

.dark-mode .tab-btn {
    color: #bdc3c7;
}

.dark-mode .tab-btn.active {
    background: #667eea;
    color: white;
}

.dark-mode .google-btn {
    background: #2c3e50;
    border-color: #34495e;
    color: white;
}

.dark-mode .google-btn:hover {
    border-color: #667eea;
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
}

.dark-mode .app-footer {
    background: rgba(0, 0, 0, 0.2);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-card h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form.hidden {
    display: none;
}

.auth-form input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-form button {
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: #5a6fd8;
}

.divider {
    margin: 20px 0;
    color: #999;
    position: relative;
}

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

.divider {
    background: white;
    padding: 0 15px;
    z-index: 2;
    position: relative;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.google-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Password toggle styles */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    z-index: 1;
}

.toggle-password:hover {
    opacity: 0.7;
}

.dark-mode .toggle-password {
    color: white;
}