/* =================================================================
   MPM Auth — Styles (matches dark music player theme)
================================================================= */

/* ── Wrap / Page Layout ──────────────────────────────────────── */
.mpmauth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: radial-gradient(ellipse at 30% 40%, #0d1f4a 0%, #060d1a 70%);
}

.mpmauth-box {
    background: transparent;
    width: 100%;
    max-width: 480px;
    padding: 20px 0;
}

.mpmauth-box-register {
    max-width: 500px;
}

/* ── Typography ──────────────────────────────────────────────── */
.mpmauth-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.mpmauth-subtitle {
    text-align: center;
    color: #8899bb;
    margin: 0 0 28px;
    font-size: .95rem;
}

.mpmauth-link-green {
    color: #2ecc71 !important;
    text-decoration: none;
    font-weight: 500;
}
.mpmauth-link-green:hover { text-decoration: underline; }

/* ── Form container (card) ───────────────────────────────────── */
.mpmauth-login-wrap .mpmauth-form {
    background: #111827;
    border: 1px solid #1f2d44;
    border-radius: 14px;
    padding: 28px 28px 24px;
}

.mpmauth-register-wrap .mpmauth-form {
    background: transparent;
    padding: 0;
}

/* ── Fields ──────────────────────────────────────────────────── */
.mpmauth-field {
    margin-bottom: 18px;
}

.mpmauth-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #c8d8f0;
    margin-bottom: 7px;
}

.req { color: #e74c3c; margin-left: 2px; }

.mpmauth-optional {
    color: #2ecc71;
    font-weight: 400;
    font-size: .8rem;
}

.mpmauth-field input {
    width: 100%;
    background: #1a2540;
    border: 1px solid #243050;
    border-radius: 8px;
    color: #c8d8f0;
    font-size: .95rem;
    padding: 11px 14px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.mpmauth-field input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,.15);
    background: #1e2d50;
}

.mpmauth-field input::placeholder { color: #4a5a7a; }

/* Two-column row */
.mpmauth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Button ──────────────────────────────────────────────────── */
.mpmauth-btn {
    display: inline-block;
    background: #2ecc71;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s, transform .1s;
    text-align: center;
}

.mpmauth-btn:hover { background: #27ae60; }
.mpmauth-btn:active { transform: scale(.98); }

.mpmauth-btn-full {
    width: 100%;
    margin-top: 6px;
}

/* ── Switch / Note ───────────────────────────────────────────── */
.mpmauth-switch {
    text-align: center;
    color: #8899bb;
    font-size: .88rem;
    margin: 16px 0 0;
}
.mpmauth-switch a { color: #2ecc71 !important; text-decoration: none; font-weight: 500; }
.mpmauth-switch a:hover { text-decoration: underline; }

.mpmauth-note {
    text-align: center;
    color: #6677aa;
    font-size: .8rem;
    margin: 14px 0 0;
    line-height: 1.5;
}

/* ── Alert messages ──────────────────────────────────────────── */
.mpmauth-alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: .9rem;
    font-weight: 500;
}
.mpmauth-alert.success {
    background: rgba(46,204,113,.15);
    border: 1px solid rgba(46,204,113,.4);
    color: #2ecc71;
}
.mpmauth-alert.error {
    background: rgba(231,76,60,.13);
    border: 1px solid rgba(231,76,60,.35);
    color: #e74c3c;
}

/* ── Already logged in box ───────────────────────────────────── */
.mpmauth-already-in {
    text-align: center;
    padding: 40px 20px;
    color: #c8d8f0;
}

/* ── Nav buttons [mpm_auth_nav] ──────────────────────────────── */
.mpmauth-nav { display: inline-flex; align-items: center; gap: 10px; }

.mpmauth-nav-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s, color .2s;
    cursor: pointer;
}

.mpmauth-nav-login {
    background: transparent;
    border: 1px solid #2ecc71;
    color: #2ecc71 !important;
}
.mpmauth-nav-login:hover { background: rgba(46,204,113,.1); }

.mpmauth-nav-register {
    background: #2ecc71;
    color: #fff !important;
}
.mpmauth-nav-register:hover { background: #27ae60; }

.mpmauth-nav-logout {
    background: #e74c3c;
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 20px;
}
.mpmauth-nav-logout:hover { background: #c0392b; }

.mpmauth-nav-user {
    color: #c8d8f0;
    font-size: .88rem;
    font-weight: 500;
}

/* ── Download-locked overlay (on song rows) ──────────────────── */
.mpm-dl-btn.mpmauth-locked {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.mpmauth-dl-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #111827;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    padding: 12px 18px;
    color: #c8d8f0;
    font-size: .88rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    max-width: 260px;
    text-align: center;
    pointer-events: auto;
}

.mpmauth-dl-tooltip.visible { display: block; }

.mpmauth-dl-tooltip a {
    display: block;
    margin-top: 10px;
    background: #2ecc71;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: .85rem;
}
.mpmauth-dl-tooltip a:hover { background: #27ae60; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .mpmauth-row-2 { grid-template-columns: 1fr; }
    .mpmauth-box { padding: 20px 4px; }
    .mpmauth-login-wrap .mpmauth-form { padding: 20px 16px; }
    .mpmauth-title { font-size: 1.6rem; }
}
