:root {
    --black: #030712;
    --black-soft: #080e1b;
    --panel: #111b30;
    --panel-light: #17233b;
    --border: #283a5b;
    --blue: #2f6fed;
    --blue-hover: #3e7cf2;
    --text: #edf3ff;
    --muted: #9dabc2;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% 35%,
            #0d1830 0,
            var(--black) 48%,
            #02050c 100%
        );
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-shell {
    width: min(560px, 100%);
    text-align: center;
}

.brand {
    margin: 0 0 28px;
    font-size: clamp(64px, 9vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 780;
}

.instruction {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 17px;
}

.login-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.text-input {
    width: min(300px, 65%);
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.text-input:focus {
    border-color: var(--blue);
}

.button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button {
    border: 0;
    background: var(--blue);
    color: white;
}

.button:hover {
    background: var(--blue-hover);
}

.secondary-button {
    border: 1px solid var(--border);
    background: rgba(17, 27, 48, 0.72);
    color: var(--text);
}

.secondary-button:hover {
    border-color: #46638f;
    background: var(--panel-light);
}

.link-button {
    text-decoration: none;
}

.panel {
    width: min(440px, 100%);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(17, 27, 48, 0.88);
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);
}

.panel-title {
    margin: 0 0 14px;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.panel-text,
.error-text {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.5;
}

.error-text {
    color: #c6d5ec;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

.file-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--black-soft);
    color: var(--text);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 90px;
}

.gallery-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.gallery-brand {
    margin: 0;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.gallery-subtitle {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 19px;
    font-weight: 650;
}

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

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(40, 58, 91, 0.75);
    border-radius: 16px;
    background: var(--panel);
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #090f1c;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px 16px 17px;
}

.gallery-meta strong {
    font-size: 14px;
}

.gallery-meta span {
    color: var(--muted);
    font-size: 13px;
}

.daily-shell {
    min-height: 100vh;
    width: min(900px, calc(100% - 48px));
    margin: auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.daily-heading {
    text-align: center;
}

.daily-heading h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 76px);
    letter-spacing: -0.055em;
}

.daily-heading p {
    margin: 13px 0 0;
    color: var(--muted);
}

.daily-image {
    display: block;
    width: auto;
    max-width: min(720px, 100%);
    max-height: 68vh;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35);
}

@media (max-width: 650px) {
    .login-form {
        flex-direction: column;
    }

    .text-input {
        width: 100%;
    }

    .gallery-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-page {
        width: min(100% - 30px, 1180px);
        padding-top: 42px;
    }

    .panel {
        padding: 30px 24px;
    }
}
