


.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.login-overlay.hidden {
    display: none;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    animation: slideUp 0.4s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.login-header p {
    color: #5a6c7d;
    font-size: 14px;
    margin: 0;
}


.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e6ed;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #5a6c7d;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}


.auth-form {
    animation: fadeIn 0.3s ease;
}

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

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

.login-form label,
.register-form label {
    display: block;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus,
.register-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    color: #7f8c9a;
    font-size: 12px;
    margin-top: 5px;
}

.register-note {
    text-align: center;
    color: #5a6c7d;
    font-size: 13px;
    margin-top: 15px;
    line-height: 1.4;
}

.register-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

.register-success.hidden {
    display: none;
}

.login-error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 18px;
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-button:active {
    transform: translateY(0);
}


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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
}
