/**
 * Credentials Modal + Privacy Overlay
 * Shared by home.html and slideshow.html
 */

/* ── Credentials Modal ── */
.cred-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cred-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cred-modal {
    background: linear-gradient(150deg, #0d2a18 0%, #071209 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    padding: 2.4rem 2.8rem 2rem;
    width: min(520px, 92vw);
    color: #fff;
    font-family: Poppins, sans-serif;
    position: relative;
}

.cred-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.3rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.cred-close-btn:hover { color: #fff; }

.cred-modal-title {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.5rem;
}

.cred-field { margin-bottom: 0.9rem; }

.cred-field input {
    width: 100%;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.cred-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.65);
}

.cred-field input::placeholder { color: rgba(255, 255, 255, 0.38); }
.cred-field input.error { border-color: #f37313; }

.cred-privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1.1rem 0 1.4rem;
}

.cred-privacy-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #f37313;
    cursor: pointer;
}

.cred-privacy-text {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
    cursor: pointer;
}

.cred-privacy-text a { color: #f37313; text-decoration: underline; }
.cred-privacy-text a:hover { opacity: 0.85; }

.cred-submit-btn {
    width: 100%;
    padding: 0.82rem;
    background: rgba(243, 115, 19, 0.88);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s;
}

.cred-submit-btn:hover { background: #f37313; }
.cred-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cred-already-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-family: Poppins, sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.cred-already-link:hover { color: rgba(255, 255, 255, 0.85); }

.cred-error {
    font-size: 0.82rem;
    color: #f37313;
    margin: 0 0 0.8rem;
    text-align: center;
}

.cred-success { text-align: center; padding: 1.5rem 0; }
.cred-success-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.cred-success-sub { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ── Privacy Policy Overlay ── */
.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.privacy-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.privacy-box {
    background: linear-gradient(150deg, #0d2a18 0%, #071209 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 2rem 2.4rem 1.8rem;
    width: min(680px, 92vw);
    max-height: 78vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.82);
    font-family: Poppins, sans-serif;
    font-size: 0.82rem;
    line-height: 1.65;
    position: relative;
}

.privacy-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.3rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.privacy-close-btn:hover { color: #fff; }
.privacy-box h1 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 0.8rem; }
.privacy-box p { margin: 0 0 0.85rem; }
