* {
    border: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #0c1014;
    min-height: 100vh;
}

a { text-decoration: none; }
ul { list-style: none; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Flex helpers */
.flex { display: flex; }
.direction-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ============ Layout ============ */
main {
    min-height: 100vh;
    align-items: stretch;
}

#showcase {
    flex: 1 1 62%;
    padding: 40px 60px;
    position: relative;
    overflow: hidden;
}

#auth {
    flex: 0 0 420px;
    border-left: 1px solid #262626;
    padding: 40px 48px;
}

.brand-logo {
    position: absolute;
    top: 40px;
    left: 60px;
    height: 48px;
    width: 48px;
    border-radius: 14px;
}

/* ============ Showcase copy ============ */
.showcase-headline {
    color: #fafafa;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    max-width: 620px;
    margin: 90px 0 10px;
}

/* ============ Story stack ============ */
.story-stack-img {
    width: 100%;
    max-width: 570px;
    height: auto;
    display: block;
}

/* ============ Login panel ============ */
.login-title {
    color: #fafafa;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

form { width: 100%; }

form input {
    background-color: #0c1014;
    border: 1px solid #363636;
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 13px 12px;
    width: 100%;
}

form input::placeholder { color: #8e8e8e; }

form input:focus {
    border-color: #6e6e6e;
    outline: none;
}

.btn-primary {
    background-color: #0d5dbe;
    border-radius: 8px;
    color: #d9d9d9;
    font-size: 14px;
    font-weight: 600;
    height: 40px;
    margin-top: 6px;
    width: 100%;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn-primary:hover { background-color: #1877d1; color: #fff; }

.forgot-link {
    color: #a8a8a8;
    font-size: 13px;
    text-align: center;
    margin: 16px 0 20px;
}

.divider {
    height: 1px;
    background: #262626;
    margin-bottom: 20px;
}

.login-with-fb { width: 100%; }

.btn-fb {
    align-items: center;
    background-color: #1b1b1b;
    border: 1px solid #363636;
    border-radius: 8px;
    color: #f5f5f5;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    height: 42px;
    justify-content: center;
    width: 100%;
}

.btn-fb:hover { background-color: #262626; }

/* ============ Register / Meta ============ */
.register {
    border: 1px solid #262626;
    border-radius: 4px;
    margin-top: 12px;
    padding: 20px;
}

.register * { font-size: 14px; color: #f5f5f5; }
.register a {
    color: #4db5ff;
    font-weight: 600;
    margin-left: 5px;
}

.meta-brand {
    color: #a8a8a8;
    font-size: 15px;
    font-weight: 600;
    gap: 6px;
    margin-top: 28px;
}

.meta-glyph { font-size: 18px; }

/* ============ Footer ============ */
footer {
    background-color: #0c1014;
    padding: 24px 16px 30px;
}

footer ul { margin-bottom: 14px; }
footer ul li { margin: 0 12px 10px; }
footer ul li a { color: #a8a8a8; font-size: 12px; }
footer ul li a:hover { text-decoration: underline; }

.footer-bottom { gap: 16px; }
.lang-select { color: #a8a8a8; font-size: 12px; }
.copyright { color: #a8a8a8; font-size: 12px; }

/* ============ Responsive ============ */
@media screen and (max-width: 900px) {
    main { flex-direction: column; }
    #showcase { display: none; }
    #auth { flex: 1; border-left: none; align-items: center; }
    .panel.login, .panel.register { width: 100%; max-width: 350px; }
}
