:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
    color: #24262d;
    background: #f4f5f7;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
}

.access-card {
    width: min(100%, 400px);
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(28, 32, 43, 0.1);
}

.lock-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #5965d8;
    border-radius: 10px;
}

.lock-icon svg {
    width: 25px;
    height: 25px;
}

h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0;
}

.description {
    margin: 8px 0 28px;
    color: #6b707c;
    font-size: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.password-field {
    position: relative;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 14px;
    border: 1px solid #cfd3dc;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #24262d;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
    border-color: #5965d8;
    box-shadow: 0 0 0 3px rgba(89, 101, 216, 0.14);
}

input.is-invalid {
    border-color: #cf4e5c;
    box-shadow: 0 0 0 3px rgba(207, 78, 92, 0.12);
}

.password-field button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #717783;
    cursor: pointer;
}

.password-field button:hover {
    background: #f1f2f5;
}

.password-field button svg {
    width: 20px;
    height: 20px;
}

.eye-closed {
    display: none;
}

.password-field button.is-visible .eye-open {
    display: none;
}

.password-field button.is-visible .eye-closed {
    display: block;
}

.message {
    min-height: 22px;
    margin: 7px 0 8px;
    color: #c43f4f;
    font-size: 13px;
}

.submit-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #5965d8;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background: #4b56c7;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .access-card {
        padding: 30px 24px;
    }
}
