:root {
    --green: #565c57;
    --green-dark: #464c47;
    --text: #202320;
    --muted: #8a8f8b;
    --border: #e5e7e5;
    --background: #f8f9f8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* =========================
   Login
   ========================= */

.login {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;
    padding: 70px 24px;
}

.logo {
    text-align: center;

    margin-bottom: 34px;

    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: var(--green);
}

.card {
    background: var(--white);

    border: 1px solid rgba(86, 92, 87, 0.08);
    border-radius: 22px;

    padding: 42px;

    box-shadow:
        0 20px 60px rgba(30, 35, 31, 0.07);
}

.title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;

    margin-bottom: 9px;
}

.subtitle {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;

    margin-bottom: 30px;
}

.field {
    margin-bottom: 18px;
}

.label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 500;

    color: #555b56;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #fff;
    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input::placeholder {
    color: #b1b5b2;
}

input:focus {
    border-color: var(--green);

    box-shadow:
        0 0 0 3px rgba(86, 92, 87, 0.10);
}

.password-input {
    padding-right: 80px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #9da29e;

    cursor: pointer;

    font-family: inherit;
    font-size: 12px;
}

.password-toggle:hover {
    color: var(--green);
}

.forgot {
    display: block;

    margin-top: -3px;
    margin-bottom: 25px;

    text-align: right;

    color: var(--green);

    text-decoration: none;

    font-size: 12px;
    font-weight: 500;
}

.forgot:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 12px;

    background: var(--green);
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: var(--green-dark);

    box-shadow:
        0 8px 20px rgba(86, 92, 87, 0.18);
}

.login-button:active {
    transform: translateY(1px);
}

.footer {
    margin-top: 26px;

    text-align: center;

    color: #a0a5a1;

    font-size: 11px;
    font-weight: 400;
}

.error-message {
    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 12px;

    background: #f4f5f4;
    color: #565c57;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================
   Dashboard
   ========================= */

.dashboard-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 42px 16px 70px;
}

.dashboard-logo {
    margin-bottom: 32px;

    color: var(--green);

    font-size: 21px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-card {
    width: min(560px, 100%);

    padding: 36px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow:
        0 18px 50px rgba(32, 35, 32, 0.07);
}


/* =========================
   Welcome
   ========================= */

.welcome {
    margin-bottom: 30px;
}

.welcome-title {
    margin: 0;

    color: var(--text);

    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
}

.welcome-emoji {
    display: inline-block;

    margin-left: 2px;

    font-size: 21px;
}

.welcome-subtitle {
    margin-top: 6px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   Cabinet header
   ========================= */

.dashboard-header {
    margin-bottom: 24px;

    padding-top: 26px;

    border-top: 1px solid var(--border);
}

.dashboard-title {
    margin: 0;

    color: var(--text);

    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-subtitle {
    margin-top: 6px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   Cabinet list
   ========================= */

.cabinet-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.cabinet-card {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 72px;

    padding: 13px 15px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    color: var(--text);
    text-decoration: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.cabinet-card:hover {
    background: #fcfdfc;

    border-color: var(--green);

    box-shadow:
        0 8px 22px rgba(32, 35, 32, 0.06);

    transform: translateY(-1px);
}

.cabinet-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 14px;

    background: var(--background);

    border-radius: 12px;

    font-size: 20px;
}

.cabinet-content {
    min-width: 0;
    flex: 1;
}

.cabinet-name {
    color: var(--text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cabinet-description {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;
}

.cabinet-arrow {
    margin-left: 12px;

    color: var(--muted);

    font-size: 18px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.cabinet-card:hover .cabinet-arrow {
    color: var(--green);

    transform: translateX(2px);
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {

    .dashboard-page {
        padding: 36px 16px 50px;
    }

    .dashboard-logo {
        margin-bottom: 26px;

        font-size: 19px;
    }

    .dashboard-card {
        padding: 26px 20px;

        border-radius: 20px;
    }

    .welcome-title {
        font-size: 21px;
    }

    .welcome-subtitle {
        font-size: 13px;
    }

    .dashboard-title {
        font-size: 19px;
    }

    .dashboard-subtitle {
        font-size: 13px;
    }

    .cabinet-card {
        min-height: 68px;
    }
}


/* =========================
   Login Mobile
   ========================= */

@media (max-width: 480px) {

    .login {
        padding: 40px 16px;
    }

    .card {
        padding: 30px 24px;

        border-radius: 18px;
    }

    .title {
        font-size: 25px;
    }
}