* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f3ef;
    color: #241b16;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: #3C5350;
    color: #fff;
    padding: 28px 22px;
}

.admin-sidebar h1 {
    margin: 0 0 28px;
    font-size: 22px;
}

.admin-sidebar nav {
    display: grid;
    gap: 10px;
}

.admin-sidebar a {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    padding: 11px 12px;
    text-decoration: none;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, .12);
}

.admin-content {
    padding: 34px;
}

.admin-content h2 {
    margin-top: 0;
}

.card {
    max-width: 760px;
    background: #fff;
    border: 1px solid #e4ddd5;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(36, 27, 22, .06);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d8cec2;
    border-radius: 6px;
    color: #241b16;
    font: inherit;
    padding: 12px;
}

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

.field {
    margin-bottom: 18px;
}

button,
.button {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    background: #3C5350;
    color: #fff;
    cursor: pointer;
    font: inherit;
    padding: 12px 18px;
    text-decoration: none;
}

.notice {
    max-width: 760px;
    border-radius: 6px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.notice.success {
    background: #ecf8ef;
    color: #1d6b33;
}

.notice.error {
    background: #fff0f0;
    color: #3C5350;
}

.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 6vw, 64px) 18px;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, .16), transparent 28%),
        radial-gradient(circle at 88% 56%, rgba(123, 201, 215, .32), transparent 26%),
        linear-gradient(135deg, #182725 0%, #2b413e 38%, #3C5350 68%, #6a78d8 100%);
}

.admin-auth-card {
    width: min(100%, 470px);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(60, 83, 80, .24);
    box-shadow: 0 34px 80px rgba(9, 20, 19, .34), inset 0 1px 0 rgba(255, 255, 255, .28);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    color: #fff;
    padding: clamp(30px, 7vw, 48px) clamp(20px, 5vw, 34px);
    text-align: center;
}

.admin-auth-logo {
    display: block;
    width: min(42vw, 150px);
    height: auto;
    object-fit: contain;
    margin: 0 auto 22px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .24));
}

.admin-auth-card h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 7vw, 44px);
    line-height: 1.1;
    font-weight: 900;
}

.admin-auth-subtitle {
    margin: 16px 0 30px;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(18px, 4vw, 22px);
    line-height: 1.5;
}

.admin-auth-field {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    min-height: 66px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 8px solid rgba(226, 240, 255, .22);
    border-radius: 13px;
    background: rgba(229, 240, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px rgba(0, 0, 0, .08);
}

.admin-auth-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #07110f;
    border-right: 1px solid rgba(255, 255, 255, .55);
}

.admin-auth-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.admin-auth-field input {
    height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1d2a28;
    font-size: clamp(18px, 4vw, 22px);
    padding: 0 18px;
    box-shadow: none;
}

.admin-auth-field input::placeholder {
    color: rgba(29, 42, 40, .78);
}

.admin-auth-field input:focus {
    box-shadow: none;
    outline: 0;
}

.admin-password-field {
    grid-template-columns: 74px minmax(0, 1fr) 72px;
}

.admin-password-field input {
    padding-right: 14px;
}

.admin-password-toggle {
    position: static;
    display: grid;
    place-items: center;
    width: 100%;
    height: 50px;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, .55);
    background: transparent;
    color: #1d2a28;
    padding: 0;
}

.admin-password-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.admin-password-toggle:hover {
    background: rgba(255, 255, 255, .2);
    color: #07110f;
}

.admin-password-toggle .admin-eye-closed,
.admin-password-toggle.is-visible .admin-eye-open {
    display: none;
}

.admin-password-toggle.is-visible .admin-eye-closed {
    display: inline;
}

.admin-auth-submit {
    width: 100%;
    height: 64px;
    margin-top: 12px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    font-size: 20px;
    background: linear-gradient(135deg, #3C5350, #2f4643 52%, #4f6f6a);
    box-shadow: 0 18px 34px rgba(17, 34, 32, .34);
}

.admin-auth-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(60, 83, 80, .4);
}

.admin-auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    color: #fff;
    font-size: 20px;
}

.admin-auth-actions span {
    display: inline-block;
    color: rgba(255, 255, 255, .92);
}

.admin-auth-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
}

.admin-auth-actions a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.admin-auth-card .notice {
    margin: 0 0 18px;
    text-align: left;
}

@media (max-width: 760px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 20px;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-content {
        padding: 22px;
    }

    .admin-auth-card {
        border-radius: 22px;
    }

    .admin-auth-field {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 60px;
        border-width: 7px;
    }

    .admin-password-field {
        grid-template-columns: 58px minmax(0, 1fr) 58px;
    }

    .admin-auth-icon svg {
        width: 24px;
        height: 24px;
    }

    .admin-auth-field input {
        height: 46px;
        padding: 0 14px;
    }

    .admin-password-toggle {
        height: 46px;
    }

    .admin-auth-actions {
        text-align: center;
    }
}
