
/* =========================================
   VEYLO PLAYER V5 - DEEP SAPPHIRE
   ========================================= */

:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system,
        "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 65% 10%,
            #112c5d 0,
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #040a17,
            #071832 65%,
            #040a16
        );
    color: #edf5ff;
}

/* =========================================
   LOGIN BACKGROUND IMAGE
   ========================================= */

body:has(.login-panel) {
    background-color: #061126;
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 10, 27, 0.65),
            rgba(3, 10, 27, 0.45)
        ),
        url("/assets/veylo-cyber-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================
   MAIN LAYOUT
   ========================================= */

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.panel {
    width: min(100%, 530px);
    border: 1px solid #2b4575;
    background: linear-gradient(
        160deg,
        #0e2245,
        #081832
    );
    box-shadow: 0 24px 90px #020713b0;
    border-radius: 24px;
    padding: clamp(24px, 5vw, 38px);
}

/* =========================================
   VEYLO GLASS LOGIN
   ========================================= */

.login-panel {
    width: min(100%, 460px);
    padding: clamp(22px, 4vw, 32px);
}

body:has(.login-panel) .login-panel {
    background: rgba(8, 24, 50, 0.88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(
        96, 165, 250, 0.40
    );

    border-radius: 24px;

    box-shadow: 0 25px 70px rgba(
        0, 0, 0, 0.45
    );
}

/* =========================================
   BRAND AND LOGO
   ========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 13px;
}

.brand img {
    height: 54px;
    width: 54px;
    object-fit: contain;
}

.login-panel .brand img {
    width: 43px;
    height: 43px;
}

.tag {
    display: inline-block;
    border: 1px solid #315b98;
    background: #122b52;
    border-radius: 100px;
    padding: 7px 12px;
    color: #9bc9ff;
    font-size: 12px;
    margin-top: 20px;
}

/* =========================================
   TEXT AND HEADINGS
   ========================================= */

h1 {
    font-size: clamp(25px, 4vw, 35px);
    letter-spacing: -0.04em;
    margin: 16px 0 8px;
}

.login-panel h1 {
    font-size: clamp(25px, 4vw, 30px);
    margin: 20px 0 7px;
}

.lead {
    line-height: 1.6;
    color: #b5c8e6;
    margin: 0 0 26px;
}

.login-panel .lead {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 19px;
}

/* =========================================
   FORM FIELDS
   ========================================= */

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 15px 0 8px;
}

.login-panel label {
    margin: 12px 0 7px;
}

input {
    display: block;
    width: 100%;
    border: 1px solid #365a8e;
    border-radius: 12px;
    background: #08172c;
    color: #fff;
    padding: 14px 15px;
    font-size: 16px;
}

.login-panel input {
    padding: 12px 14px;
    border-radius: 10px;
}

input::placeholder {
    color: #8aa4c7;
}

input:disabled {
    opacity: 0.58;
}

input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(
        96, 165, 250, 0.15
    );
}

/* =========================================
   BUTTONS
   ========================================= */

button {
    width: 100%;
    margin-top: 23px;
    border: 0;
    border-radius: 12px;
    background: #306ddb;
    color: white;
    padding: 15px 18px;
    font-weight: 700;
    font-size: 15px;
}

.login-panel button {
    margin-top: 20px;
    padding: 13px 16px;
}

button:disabled {
    background: #314d74;
    color: #b6c7dd;
    cursor: not-allowed;
}

button:not(:disabled) {
    cursor: pointer;
}

button:not(:disabled):hover {
    background: #4085f5;
}

/* =========================================
   STATUS / NOTICE
   ========================================= */

.notice {
    border: 1px solid #315a86;
    border-radius: 15px;
    background: #122b4d;
    padding: 18px;
    margin-top: 24px;
}

.notice strong {
    color: #d8eafe;
}

.notice p,
.foot {
    color: #adc2e2;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 0;
}

.foot {
    text-align: center;
    margin-top: 20px;
}

.connection-status {
    text-align: center;
    color: #9db6da;
    font-size: 11.5px;
    margin: 10px 0 0;
}

/* =========================================
   LEGAL WARNING - RED GLASS
   ========================================= */

.legal-compact {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    background: rgba(127, 29, 29, 0.16);

    border: 1px solid rgba(
        248, 113, 113, 0.35
    );

    border-left: 3px solid #f87171;
    border-radius: 12px;

    padding: 13px 15px;
    margin-top: 20px;

    color: #f1d3d8;
}

.legal-compact .legal-icon {
    flex: none;
    color: #f87171;
    font-size: 17px;
    line-height: 1.4;
}

.legal-compact p {
    font-size: 11.5px;
    line-height: 1.55;
    margin: 0;
}

.legal-compact a {
    color: #fca5a5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-compact a:hover {
    color: #fecaca;
}

/* Legacy legal notice */

.legal-warning {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #3463a4;
    border-left: 4px solid #60a5fa;
    border-radius: 14px;
    background: linear-gradient(
        125deg,
        #122948,
        #10213c
    );
    color: #c4d7f0;
}

.legal-warning .legal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #eef6ff;
    font-size: 14px;
}

.legal-warning .legal-symbol {
    color: #78b6ff;
    font-size: 20px;
    line-height: 1;
}

.legal-warning p {
    font-size: 12.5px;
    line-height: 1.65;
    margin: 10px 0 0;
}

.legal-warning a,
.legal-link {
    color: #8dc4ff;
    text-underline-offset: 3px;
}

.legal-warning a:hover,
.legal-link:hover {
    color: #d7eaff;
}

/* =========================================
   TERMS AND CONDITIONS
   ========================================= */

.terms-panel {
    width: min(100%, 840px);
}

.terms-panel h2 {
    font-size: 18px;
    margin: 28px 0 8px;
}

.terms-panel p,
.terms-panel li {
    color: #bed0e9;
    line-height: 1.7;
}

.terms-panel ul {
    padding-left: 24px;
}

.terms-meta {
    color: #91aacf;
    font-size: 13px;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
}

/* =========================================
   RESPONSIVE MOBILE
   ========================================= */

@media (max-width: 520px) {

    .shell {
        padding: 14px;
    }

    .panel {
        border-radius: 17px;
    }

    .login-panel {
        padding: 22px;
        border-radius: 17px;
    }

    .login-panel h1 {
        margin-top: 16px;
    }

    body:has(.login-panel) {
        background-attachment: scroll;
    }
}
