:root {
    --sms-bg-top: #0f5472;
    --sms-bg-bottom: #7cced1;
    --sms-panel: rgba(6, 35, 52, 0.54);
    --sms-panel-soft: rgba(255, 255, 255, 0.12);
    --sms-border: rgba(255, 255, 255, 0.16);
    --sms-text: #ffffff;
    --sms-text-soft: rgba(255, 255, 255, 0.82);
    --sms-text-muted: rgba(255, 255, 255, 0.66);
    --sms-accent: #c8f57b;
    --sms-shadow: 0 24px 54px rgba(2, 18, 30, 0.24);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--sms-text);
}

body {
    background:
        linear-gradient(180deg, rgba(9, 69, 97, 0.88) 0%, rgba(17, 117, 131, 0.44) 46%, rgba(124, 206, 209, 0.16) 100%),
        url("../../images/background15.jpg") center bottom / cover no-repeat fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.sms-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.sms-shell__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(180deg, rgba(14, 81, 97, 0.26) 0%, rgba(16, 89, 105, 0.12) 100%);
    pointer-events: none;
}

.sms-login,
.sms-dashboard {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.sms-login__hero,
.sms-login__card,
.sms-login__footer,
.sms-dashboard__header,
.sms-dashboard__menu,
.sms-dashboard__workspace,
.sms-dashboard__footer {
    border: 1px solid var(--sms-border);
    background: var(--sms-panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--sms-shadow);
}

.sms-login {
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 20px;
}

.sms-login__hero,
.sms-login__card,
.sms-login__footer,
.sms-dashboard__header,
.sms-dashboard__menu,
.sms-dashboard__workspace,
.sms-dashboard__footer {
    border-radius: 28px;
}

.sms-login__hero,
.sms-login__card {
    padding: 26px;
}

.sms-login__brand {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.sms-login__logo {
    width: 72px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(7, 33, 48, 0.32));
}

.sms-login__title {
    text-align: center;
}

.sms-login__eyebrow,
.sms-dashboard__eyebrow,
.sms-dashboard__menu-eyebrow,
.sms-login__card-label {
    margin: 0 0 6px;
    color: var(--sms-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.sms-login__title h1,
.sms-dashboard__brand h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.sms-login__subtitle,
.sms-dashboard__summary,
.sms-login__summary,
.sms-login__card-note,
.sms-dashboard__menu-note,
.sms-workspace__description,
.sms-dashboard__footer p,
.sms-login__footer p {
    margin: 8px 0 0;
    color: var(--sms-text-soft);
    line-height: 1.6;
}

.sms-login__summary {
    max-width: 720px;
    margin-top: 18px;
}

.sms-login__card {
    max-width: 560px;
}

.sms-login__card-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.sms-login__icon,
.sms-dashboard__brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sms-login__icon {
    width: 82px;
    height: 82px;
}

.sms-login__icon img,
.sms-dashboard__brand-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.sms-login__card h2,
.sms-dashboard__menu-head h2,
.sms-workspace__header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.sms-alert {
    margin-top: 18px;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.sms-alert--error {
    background: rgba(208, 54, 86, 0.18);
    border: 1px solid rgba(255, 129, 153, 0.38);
    color: #ffe4eb;
}

.sms-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

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

.sms-field span {
    font-size: 0.92rem;
    color: var(--sms-text-soft);
}

.sms-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: #123646;
    outline: none;
}

.sms-field input:focus {
    border-color: rgba(200, 245, 123, 0.92);
    box-shadow: 0 0 0 4px rgba(200, 245, 123, 0.18);
}

.sms-login__actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.sms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.sms-btn--primary {
    background: linear-gradient(135deg, #c8f57b, #9ed06d);
    color: #183447;
}

.sms-btn--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--sms-text);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.sms-login__footer,
.sms-dashboard__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
}

.sms-login__footer-brand,
.sms-dashboard__footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sms-login__footer-brand img,
.sms-dashboard__footer-brand img {
    width: 42px;
    height: 42px;
}

.sms-login__footer-brand strong,
.sms-dashboard__footer-brand strong {
    display: block;
}

.sms-login__footer-version,
.sms-dashboard__footer-version {
    margin: 0;
    color: var(--sms-text-soft);
    text-align: right;
}

.sms-dashboard {
    display: grid;
    gap: 20px;
}

.sms-dashboard__header,
.sms-dashboard__menu,
.sms-dashboard__workspace {
    padding: 24px;
}

.sms-dashboard__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.sms-dashboard__brand {
    display: flex;
    gap: 18px;
    align-items: center;
}

.sms-dashboard__brand-icon {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
}

.sms-dashboard__user {
    min-width: 240px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sms-dashboard__user-label {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sms-text-muted);
}

.sms-dashboard__user strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
}

.sms-dashboard__user span {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(200, 245, 123, 0.18);
    color: #efffc8;
    font-size: 0.84rem;
}

.sms-text-link {
    display: inline-block;
    margin-top: 14px;
    color: #dff7ff;
    font-weight: 600;
}

.sms-dashboard__menu-head,
.sms-workspace__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.sms-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.sms-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--sms-panel-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sms-shortcut:hover,
.sms-shortcut:focus-visible,
.sms-shortcut--active {
    transform: translateY(-3px);
    border-color: rgba(200, 245, 123, 0.46);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 34px rgba(3, 21, 33, 0.16);
}

.sms-shortcut__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
}

.sms-shortcut__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sms-shortcut__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sms-shortcut__body strong {
    font-size: 1rem;
}

.sms-shortcut__body small {
    color: var(--sms-text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.sms-shortcut--utility {
    background: rgba(8, 29, 42, 0.4);
}

.sms-workspace__frame {
    width: 100%;
    min-height: 540px;
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(9, 40, 56, 0.08);
}

@media (max-width: 900px) {
    .sms-login,
    .sms-dashboard {
        width: min(100% - 24px, 1180px);
    }

    .sms-dashboard__header,
    .sms-dashboard__menu-head,
    .sms-workspace__header,
    .sms-login__footer,
    .sms-dashboard__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .sms-dashboard__user,
    .sms-login__card {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .sms-login,
    .sms-dashboard {
        width: calc(100% - 16px);
        padding: 12px 0 16px;
    }

    .sms-login__hero,
    .sms-login__card,
    .sms-login__footer,
    .sms-dashboard__header,
    .sms-dashboard__menu,
    .sms-dashboard__workspace,
    .sms-dashboard__footer {
        border-radius: 20px;
        padding: 16px 14px;
    }

    .sms-login__brand {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 10px;
    }

    .sms-login__logo {
        width: 52px;
    }

    .sms-login__title h1 {
        font-size: 1.2rem;
    }

    .sms-login__subtitle,
    .sms-login__eyebrow {
        font-size: 0.72rem;
    }

    .sms-login__summary,
    .sms-dashboard__summary,
    .sms-dashboard__menu-note,
    .sms-workspace__description,
    .sms-shortcut__body small,
    .sms-login__card-note,
    .sms-login__footer-version,
    .sms-dashboard__footer-version {
        font-size: 0.9rem;
    }

    .sms-login__actions {
        flex-direction: column;
    }

    .sms-dashboard__brand {
        align-items: flex-start;
    }

    .sms-dashboard__brand-icon {
        width: 66px;
        height: 66px;
    }

    .sms-dashboard__brand-icon img {
        width: 42px;
        height: 42px;
    }

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

    .sms-shortcut {
        min-height: 154px;
        padding: 14px 12px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .sms-shortcut__icon {
        width: 58px;
        height: 58px;
    }

    .sms-shortcut__body strong {
        font-size: 0.92rem;
    }

    .sms-shortcut__body small {
        display: none;
    }

    .sms-workspace__frame {
        min-height: 480px;
        border-radius: 18px;
    }
}
