.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.auth-close:hover { color: #333; }

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    position: relative;
}

.auth-tab.active {
    color: #6c5ce7;
    font-weight: 600;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6c5ce7;
}

.auth-form { display: none; }
.auth-form.active { display: block; }

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #6c5ce7;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover { background: #5b4cc4; }

.auth-error {
    color: #ff7675;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

/* Dark Mode Support */
[data-theme="dark"] .auth-modal-content {
    background-color: #2d2d2d;
    color: #fff;
}

[data-theme="dark"] .form-group label { color: #ccc; }
[data-theme="dark"] .form-group input {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}
[data-theme="dark"] .auth-close { color: #888; }
[data-theme="dark"] .auth-close:hover { color: #fff; }
