/* Orbet.site - Authentication Styles */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Close Button */
.modal .close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .close:hover {
    color: #fff;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: #fff;
    border-bottom-color: #8a2be2;
}

.auth-tab:hover {
    color: #fff;
}

/* Auth Form */
.auth-form h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #8a2be2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Submit Button */
.auth-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.5);
}

.auth-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Error Message */
.auth-error {
    color: #ff4444;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    text-align: center;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
    font-size: 14px;
}

.auth-footer a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #ff69b4;
}

/* Notifications */
.notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 10px;
    padding: 15px 25px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: top 0.3s ease-out;
}

.notification.show {
    top: 20px;
}

.notification-success {
    border-color: rgba(0, 255, 0, 0.5);
}

.notification-error {
    border-color: rgba(255, 0, 0, 0.5);
}

.notification-info {
    border-color: rgba(0, 150, 255, 0.5);
}

/* Login/Signup Button in Header */
.auth-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

/* User Menu (when logged in) */
.user-profile {
    position: relative;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile:hover {
    background: rgba(138, 43, 226, 0.2);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(138, 43, 226, 0.2);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .auth-form h2 {
        font-size: 24px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        text-align: center;
    }
}
