@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@700&display=swap');
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 100vh;
    height: auto;
    padding: 205px 18px 28px;
    background: #f3f5f1;
    color: #202922;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

.auth-page::before {
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 178px;
    background: #123c30;
    content: '';
}

.auth-page .logo,
.auth-page .box,
.auth-page .container {
    position: relative;
    z-index: 1;
}

.auth-page .logo {
    position: absolute;
    display: flex;
    top: 24px;
    right: auto;
    left: 24px;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
}

.auth-page .msakade-logo {
    display: block;
    width: 54px;
    height: auto;
    background: #fff;
}

.auth-page .auth-brand-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-page .auth-brand-name {
    color: #fff;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.auth-page .auth-brand-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-page .auth-brand-heading .msakade-logo {
    width: 52px;
}

.auth-page .box,
.auth-page .container {
    width: min(100%, 440px);
    margin: 0;
    padding: 28px;
    border: 1px solid #dce2dc;
    border-top: 4px solid #14724f;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(18, 60, 48, 0.12);
    text-align: left;
}

.auth-page .box h2,
.auth-page .container h3 {
    margin: 0 0 20px;
    color: #123c30;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 21px;
    text-align: left;
}

.auth-page input {
    width: 100%;
    min-height: 48px;
    margin: 7px 0;
    padding: 12px 13px;
    border: 1px solid #dce2dc;
    border-radius: 4px;
    background: #fff;
    color: #202922;
    font-family: inherit;
    font-size: 15px;
}

.auth-page input:focus {
    border-color: #14724f;
    outline: 2px solid rgba(20, 114, 79, 0.16);
}

.auth-page button {
    width: 100%;
    min-height: 48px;
    margin: 8px 0 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 4px;
    background: #123c30;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.auth-page button:hover {
    background: #14724f;
}

.auth-page .error {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #e9c1bd;
    border-radius: 4px;
    background: #fbefed;
    color: #7c3028;
    font-size: 14px;
}

.auth-page .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: -8px 0 18px;
    border-bottom: 1px solid #dce2dc;
    background: #fff;
}

.auth-page .tab {
    min-width: 0;
    padding: 12px 5px;
    border-bottom: 3px solid transparent;
    background: #fff;
    color: #68736b;
    font-size: 13px;
    text-align: center;
}

.auth-page .tab.active {
    border-bottom-color: #14724f;
    color: #123c30;
}

.auth-page .header {
    margin: -28px -28px 18px;
    padding: 16px 20px;
    background: #123c30;
    color: #fff;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 18px;
    text-align: center;
}

.auth-page .form {
    padding: 0;
}

.auth-page .links {
    margin-top: 18px;
    color: #68736b;
    font-size: 14px;
    text-align: center;
}

.auth-page .links a {
    color: #14724f;
    text-decoration: none;
}

.auth-page .links a:hover {
    text-decoration: underline;
}

.auth-page :focus-visible {
    outline: 3px solid #e5b84d;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 198px 14px 20px;
    }

    .auth-page .box,
    .auth-page .container {
        padding: 22px 18px;
    }

    .auth-page .header {
        margin: -22px -18px 18px;
    }

    .auth-page .tab {
        font-size: 12px;
    }
}