/* ==========================================================
   Private Videos Platform
   Global stylesheet
   ========================================================== */

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #222;
    font-size: 14px;
}

a {
    color: inherit;
}

img,
iframe,
video {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    word-break: normal;
}

/* ---------- Layout ---------- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

/* ---------- Topbar ---------- */

.topbar {
    background: #111;
    color: #fff;
    padding: 14px 24px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    margin-right: 18px;
}

/* ---------- Forms ---------- */

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 6px 0 14px;
    background: #fff;
    font-size: 15px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, .08);
}

label {
    display: block;
    font-weight: bold;
    font-size: 14px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    border: 0;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.btn:hover {
    opacity: .92;
}

.btn.secondary {
    background: #666;
}

.btn.danger {
    background: #a72020;
}

.btn.small {
    padding: 7px 10px;
    font-size: 13px;
}

/* ---------- Tables ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

/* ---------- Alerts ---------- */

.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.alert-success {
    background: #e8f7ec;
}

.alert-danger {
    background: #ffecec;
}

.alert-info {
    background: #eaf2ff;
}

/* ---------- Utilities ---------- */

.muted {
    color: #666;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.small-note {
    font-size: 13px;
    color: #777;
}

/* ---------- Login / public access wrapper ---------- */

.login-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 50px auto;
    padding: 0 24px;
}

/* Wider public page when used with access-card */
.login-wrap.access-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 18px;
}

/* ---------- Video player ---------- */

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.watermark {
    position: absolute;
    right: 14px;
    top: 14px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    z-index: 2;
    font-size: 13px;
    pointer-events: none;
}

/* ==========================================================
   Public video access page
   ========================================================== */

.access-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px;
}

.access-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 42px;
    align-items: start;
}

.access-main {
    min-width: 0;
}

.access-side {
    min-width: 0;
}

.access-header {
    text-align: left;
    margin-bottom: 22px;
}

.access-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #f0d98c;
    font-size: 18px;
}

.access-kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #777;
    font-weight: bold;
}

.access-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.22;
}

.video-description {
    margin-bottom: 18px;
    color: #555;
    line-height: 1.55;
}

.privacy-box {
    background: #f7f4ec;
    border: 1px solid #eadcab;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 0;
}

.privacy-box h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.privacy-box p {
    margin: 0 0 12px;
    line-height: 1.55;
    color: #333;
}

.privacy-box p:last-child {
    margin-bottom: 0;
}

/* ---------- SMS box ---------- */

.phone-top-box {
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
}

.phone-top-box h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.phone-top-box p {
    margin: 0 0 20px;
    color: #d8d8d8;
    line-height: 1.5;
}

.phone-top-box label {
    color: #fff;
}

.access-form {
    margin-top: 0;
}

.phone-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    margin: 7px 0 14px;
    background: #fff;
}

.phone-field span {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #555;
    font-size: 14px;
    border-right: 1px solid #ddd;
    white-space: nowrap;
    background: #f6f6f6;
}

.phone-field input {
    border: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.phone-field input:focus {
    box-shadow: none;
}

.phone-top-box .btn {
    width: 100%;
    background: #f0d98c;
    color: #111;
    font-weight: bold;
    padding: 13px 16px;
}

.access-footer {
    margin-top: 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.access-footer p {
    margin: 0 0 12px;
}

/* ---------- Legacy optional phone row ---------- */

.phone-row {
    display: flex;
    gap: 12px;
}

.phone-row button {
    white-space: nowrap;
}

.phone-row input {
    margin: 0;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {
    .login-wrap.access-page {
        margin: 24px auto;
    }

    .access-card {
        padding: 24px;
    }

    .access-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .access-header h1 {
        font-size: 25px;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 16px;
    }

    .card {
        padding: 18px;
        border-radius: 12px;
    }

    .login-wrap {
        margin: 24px auto;
        padding: 0 14px;
    }

    .login-wrap.access-page {
        padding: 0 14px;
    }

    .access-card {
        padding: 20px;
    }

    .access-icon {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .access-header h1 {
        font-size: 23px;
    }

    .privacy-box,
    .phone-top-box {
        padding: 18px;
        border-radius: 14px;
    }

    .privacy-box h2 {
        font-size: 20px;
    }

    .phone-top-box h3 {
        font-size: 21px;
    }

    .phone-row {
        flex-direction: column;
    }

    .topbar {
        padding: 12px 16px;
    }

    .topbar a {
        display: inline-block;
        margin-bottom: 8px;
    }
}

.public-footer {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.public-footer p {
    margin: 0 0 6px;
}

.footer-dev{
    margin-top:10px;
    font-size:12px;
    color:#999;
    letter-spacing:.3px;
    line-height:1.6;
}

.footer-dev a{
    color:#777;
    text-decoration:none;
}

.footer-dev a:hover{
    color:#111;
}
