:root {
    --fs-blue: rgb(13, 148, 220);
    --fs-green: rgb(134, 196, 29);
    --fs-white: rgb(255, 255, 255);
    --fs-grey: rgb(209, 209, 209);
    --fs-dark-grey: rgba(0, 0, 0, 0.38);
    --fs-error-red: rgb(220, 38, 38);
    --fs-error-bg: rgba(220, 38, 38, 0.08);
    --fs-text: rgb(25, 25, 25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--fs-white);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--fs-text);
}

body {
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 30px;
}

.auth-shell {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.logo-wrap {
    margin: 0 auto 50px;
    max-width: 250px;
}

.logo {
    display: block;
    width: 100%;
    height: auto;
}

.loading-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(13, 148, 220, 0.18);
    border-top-color: var(--fs-blue);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 12px;
    background: var(--fs-error-bg);
    color: var(--fs-error-red);
    font-size: 15px;
    line-height: 1.45;
}

.title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    color: var(--fs-text);
}

.message {
    margin: 0 0 22px;
    color: var(--fs-dark-grey);
    font-size: 17px;
    line-height: 1.5;
}

.reset-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.password-field {
    position: relative;
    width: 100%;
}

.input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--fs-grey);
    border-radius: 7px;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
    background: var(--fs-white);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.password-input {
    padding-right: 52px;
}

.input:focus {
    border-color: var(--fs-blue);
    box-shadow: 0 0 0 3px rgba(13, 148, 220, 0.12);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--fs-dark-grey);
    cursor: pointer;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--fs-text);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(13, 148, 220, 0.25);
    outline-offset: 4px;
    border-radius: 6px;
}

.icon {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.primary-button {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 7px;
    background: var(--fs-blue);
    color: var(--fs-white);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.05s ease;
}

.primary-button:hover {
    opacity: 0.94;
}

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

.primary-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
}

.success-title,
.success-message {
    color: var(--fs-text);
}

@media (max-width: 520px) {
    .page {
        padding: 20px 24px;
    }

    .logo-wrap {
        max-width: 220px;
        margin-bottom: 42px;
    }

    .title {
        font-size: 26px;
    }

    .message {
        font-size: 16px;
    }
}