:root {
    font-family:
        Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    color: #f1f3f6;
    background: #0d1114;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    background: #0d1114;
    color: #f1f3f6;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

/* Login */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(700px, 100%);
    min-height: 820px;
    padding: 66px 68px 62px;
    display: flex;
    flex-direction: column;
    border: 1px solid #343b43;
    border-radius: 22px;
    background: #1a1f24;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    color: #969da8;
    font-size: 22px;
    line-height: 1;
}

.language-switcher span {
    cursor: default;
}

.language-switcher .active {
    color: #f2f3f5;
}

.login-logo {
    margin: 55px 0 58px;
    text-align: center;
}

.login-logo-main {
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #f1f2f4;
}

.login-logo-sub {
    margin-top: 20px;
    padding-left: 0.42em;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.42em;
    line-height: 1;
    color: #f1262d;
}

.login-alert {
    margin: -18px 0 28px;
    padding: 13px 15px;
    border: 1px solid #8c343b;
    border-radius: 10px;
    background: #37191d;
    color: #ffc5c8;
    font-size: 15px;
}

.login-form {
    display: grid;
    gap: 24px;
}

.login-form label {
    display: grid;
    gap: 14px;
    color: #a7adb8;
    font-size: 23px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    height: 72px;
    padding: 0 20px;
    border: 1px solid #353c44;
    border-radius: 13px;
    outline: none;
    background: #0e1215;
    color: #f4f5f6;
    font-size: 24px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.login-form input:focus {
    border-color: #737b85;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.login-form button {
    height: 72px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    background: #df1f27;
    color: #fff;
    font-size: 24px;
    font-weight: 650;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.05s ease;
}

.login-form button:hover {
    background: #ee252d;
}

.login-form button:active {
    transform: translateY(1px);
}

.login-footer {
    margin-top: auto;
    padding-top: 58px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #a5abb6;
    font-size: 21px;
}

.login-footer a {
    text-decoration: none;
}

.login-footer a:hover {
    color: #fff;
}

/* Application pages */

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.topbar {
    height: 68px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #252c33;
    background: #171c20;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #aeb4bd;
    font-size: 14px;
}

.user-area a {
    color: #fff;
    text-decoration: none;
}

.workspace {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 0;
    font-size: 34px;
}

.page-heading p {
    margin: 7px 0 0;
    color: #9098a3;
}

.page-heading button {
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    background: #df1f27;
    color: #fff;
    font-weight: 700;
}

.page-heading button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.notice {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid #67551e;
    border-radius: 10px;
    background: #2d2714;
    color: #ffe49a;
}

.empty-state {
    min-height: 390px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    border: 1px dashed #3a424b;
    border-radius: 18px;
    background: #171c20;
}

.empty-icon {
    font-size: 54px;
}

.empty-state h2 {
    margin: 18px 0 6px;
}

.empty-state p {
    margin: 0;
    color: #9098a3;
}

@media (max-width: 760px) {
    .login-page {
        padding: 14px;
    }

    .login-card {
        min-height: auto;
        padding: 34px 25px 30px;
        border-radius: 18px;
    }

    .language-switcher {
        font-size: 17px;
    }

    .login-logo {
        margin: 44px 0 48px;
    }

    .login-logo-main {
        font-size: 38px;
    }

    .login-logo-sub {
        margin-top: 16px;
        font-size: 21px;
    }

    .login-form label {
        font-size: 18px;
    }

    .login-form input,
    .login-form button {
        height: 60px;
        font-size: 19px;
    }

    .login-footer {
        margin-top: 55px;
        padding-top: 0;
        font-size: 16px;
    }

    .topbar {
        padding: 0 18px;
    }

    .user-area span {
        display: none;
    }

    .workspace {
        width: min(100% - 28px, 1400px);
        padding-top: 26px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Compact login layout */
.login-card {
    width: min(560px, 100%);
    min-height: 700px;
    padding: 48px 52px 44px;
}

.language-switcher {
    font-size: 17px;
}

.login-logo {
    margin: 42px 0 46px;
}

.login-logo-main {
    font-size: 46px;
}

.login-logo-sub {
    margin-top: 16px;
    font-size: 24px;
}

.login-form {
    gap: 20px;
}

.login-form label {
    gap: 10px;
    font-size: 18px;
}

.login-form input {
    height: 56px;
    padding: 0 16px;
    font-size: 18px;
}

.login-form button {
    height: 58px;
    margin-top: 12px;
    font-size: 19px;
}

.login-footer {
    padding-top: 42px;
    font-size: 16px;
}

/* Final login dimensions */
.login-card {
    width: 470px;
    min-height: 590px;
    padding: 34px 42px 32px;
}

.login-logo {
    margin: 28px 0 34px;
}

.login-logo-main {
    font-size: 38px;
}

.login-logo-sub {
    margin-top: 12px;
    font-size: 19px;
}

.login-form {
    gap: 16px;
}

.login-form label {
    gap: 8px;
    font-size: 15px;
}

.login-form input {
    height: 46px;
    font-size: 16px;
}

.login-form button {
    height: 48px;
    margin-top: 8px;
    font-size: 17px;
}

.login-footer {
    padding-top: 28px;
    font-size: 14px;
}


/* Shoots module */

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand strong {
    color: #df1f27;
    font-size: 13px;
    letter-spacing: 0.18em;
}

.primary-button,
.secondary-button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    border: 1px solid #df1f27;
    background: #df1f27;
    color: #fff;
}

.primary-button:hover {
    background: #ed252d;
}

.secondary-button {
    border: 1px solid #3a424b;
    background: #20262c;
    color: #d7dbe0;
}

.success-message,
.error-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
}

.success-message {
    border: 1px solid #28663c;
    background: #142b1c;
    color: #a9e8bb;
}

.error-message {
    border: 1px solid #81383d;
    background: #32191c;
    color: #ffc1c5;
}

.shoots-panel {
    overflow: hidden;
    border: 1px solid #303840;
    border-radius: 14px;
    background: #171c20;
}

.shoots-table-wrapper {
    overflow-x: auto;
}

.shoots-table {
    width: 100%;
    border-collapse: collapse;
}

.shoots-table th,
.shoots-table td {
    padding: 17px 18px;
    text-align: left;
    white-space: nowrap;
}

.shoots-table th {
    border-bottom: 1px solid #303840;
    background: #1d2328;
    color: #929aa4;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shoots-table td {
    border-bottom: 1px solid #292f35;
    color: #d4d8dd;
    font-size: 14px;
}

.shoots-table tbody tr:last-child td {
    border-bottom: 0;
}

.shoots-table tbody tr:hover {
    background: #1b2126;
}

.shoot-title {
    color: #f1f3f5;
    font-weight: 700;
}

.shoot-id {
    margin-top: 5px;
    color: #707983;
    font-size: 11px;
}

.muted-value {
    color: #707983;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-incoming {
    border-color: #315c7d;
    background: #172a38;
    color: #9ed3fa;
}

.status-editing {
    border-color: #756120;
    background: #302914;
    color: #f1d778;
}

.status-published {
    border-color: #2d6d43;
    background: #162d1e;
    color: #a8e7ba;
}

.status-archived {
    border-color: #4a5159;
    background: #24292e;
    color: #abb2ba;
}

.empty-action {
    margin-top: 24px;
}

.shoot-dialog {
    width: min(660px, calc(100% - 28px));
    padding: 0;
    border: 1px solid #3a424a;
    border-radius: 16px;
    background: #191f24;
    color: #f1f3f5;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.shoot-dialog::backdrop {
    background: rgba(4, 7, 9, 0.78);
}

.shoot-form {
    padding: 28px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.dialog-header h2 {
    margin: 0;
    font-size: 24px;
}

.dialog-header p {
    margin: 7px 0 0;
    color: #8f98a2;
    font-size: 14px;
}

.dialog-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #aeb5bd;
    font-size: 28px;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field span {
    color: #b4bbc3;
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #394149;
    border-radius: 9px;
    outline: none;
    background: #101417;
    color: #f0f2f4;
    font-size: 15px;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #747d87;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 28px;
    padding-top: 21px;
    border-top: 1px solid #30373e;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .shoot-form {
        padding: 22px;
    }
}

/* Photo gallery */

.photos-panel {
    padding: 22px;
    border: 1px solid #2b333b;
    border-radius: 18px;
    background: #171c20;
}

.photos-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.photos-panel-heading h2 {
    margin: 0;
    font-size: 22px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(230px, 1fr)
    );
    gap: 16px;
}

.photo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #303840;
    border-radius: 12px;
    background: #101417;
}

.photo-image-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #080a0c;
}

.photo-image-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.18s ease;
}

.photo-image-link:hover img {
    transform: scale(1.025);
}

.photo-card-info {
    padding: 11px 12px 13px;
    display: grid;
    gap: 4px;
}

.photo-card-info strong {
    overflow: hidden;
    color: #f3f5f7;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-card-info span {
    color: #8f98a2;
    font-size: 12px;
}

@media (max-width: 600px) {
    .photos-panel {
        padding: 14px;
    }

    .photo-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 10px;
    }

    .photo-card-info {
        padding: 9px;
    }

    .photo-card-info span {
        display: none;
    }
}
