/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 500;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #FDB813;
    font-size: 24px;
    cursor: pointer;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.auth-tab.active {
    background: linear-gradient(135deg, #FDB813 0%, #FFCC00 100%);
    color: #000;
    border-color: #FDB813;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
}

.auth-form input:focus {
    outline: none;
    border-color: #FDB813;
}

.auth-form input::placeholder {
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.auth-form .btn-primary {
    width: 100%;
    margin-bottom: 15px;
}

.forgot-link {
    display: block;
    text-align: center;
    color: #FDB813;
    text-decoration: none;
    font-size: 14px;
}

/* Social Login */
.social-login {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-login p {
    text-align: center;
    color: #999;
    margin-bottom: 15px;
    font-size: 14px;
}

#googleSignInDiv {
    margin-bottom: 10px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.facebook-btn {
    background: #1877F2;
    color: white;
}

.apple-btn {
    background: #000;
    color: white;
    border: 1px solid #333;
}

.apple-btn span::before {
    content: "";
    font-size: 18px;
}

/* Google Sign-In Button Override */
.g_id_signin {
    width: 100% !important;
}

.g_id_signin iframe {
    width: 100% !important;
}
