.modal-backdrop {
    z-index: 9999;
}
#loginModal {
    z-index: 99999;
}

/* Modal content wrapper */
.login-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Close button */
.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}
.login-modal-close:hover {
    background: #f1f5f9;
}

/* Body */
.login-modal-body {
    padding: 32px 28px 24px !important;
}

/* Header */
.login-modal-header {
    margin-bottom: 24px;
}
.login-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}
.login-modal-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Social buttons row */
.login-modal-social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.login-modal-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
}
.login-modal-social-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    text-decoration: none;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Email login link button */
.login-modal-email-link-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 4px;
}
.login-modal-email-link-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Divider */
.login-modal-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 0.8rem;
}
.login-modal-divider::before,
.login-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.login-modal-divider span {
    padding: 0 14px;
    white-space: nowrap;
}

/* Form fields */
.login-modal-field {
    margin-bottom: 14px;
}
.login-modal-field > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.login-modal-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.login-modal-field-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.login-modal-input {
    display: block;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1a1a2e;
}
.login-modal-input:focus {
    border-color: #7052fb;
    box-shadow: 0 0 0 3px rgba(112, 82, 251, 0.1);
    outline: none;
}

/* Forgot password link */
.login-modal-forgot-link {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
}
.login-modal-forgot-link:hover {
    text-decoration: underline;
    color: #374151;
}

/* Remember me */
.login-modal-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
}
.login-modal-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7052fb;
    cursor: pointer;
}
.login-modal-remember span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Submit button */
.login-modal-submit {
    margin-top: 18px;
}
.login-modal-submit-btn {
    width: 100%;
    padding: 13px;
    background: #7052fb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-modal-submit-btn:hover {
    background: #5a3fd8;
    color: #fff;
    box-shadow: 0 4px 14px rgba(112, 82, 251, 0.3);
}

/* Switch section (sign up link) */
.login-modal-switch {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.login-modal-switch p {
    text-align: center;
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
}
.login-modal-switch a {
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
}
.login-modal-switch a:hover {
    color: #374151;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .login-modal-social-buttons {
        flex-direction: column;
    }
    .login-modal-body {
        padding: 24px 20px 20px !important;
    }
}
