* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #eef4ff;
    background:
        radial-gradient(
            circle at top right,
            #173d70 0,
            transparent 38%
        ),
        #07101d;
    font-family: Arial, Helvetica, sans-serif;
}

.recovery-card {
    width: min(460px, 100%);
    padding: 32px;
    background: rgba(15, 29, 49, 0.97);
    border: 1px solid #294769;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.brand {
    margin-bottom: 25px;
    font-size: 30px;
    font-weight: 800;
    text-align: center;
}

.brand span {
    color: #51d6a8;
}

h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.subtitle {
    margin: 0 0 25px;
    color: #92a6c1;
    font-size: 14px;
    line-height: 1.55;
}

label {
    display: block;
    margin: 15px 0 7px;
    color: #afbdd0;
    font-size: 13px;
}

input {
    width: 100%;
    padding: 13px 14px;
    color: #eef4ff;
    background: #081421;
    border: 1px solid #2b4a70;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
}

input:focus {
    border-color: #51d6a8;
    box-shadow: 0 0 0 3px rgba(81, 214, 168, 0.1);
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 13px 15px;
    cursor: pointer;
    color: #07101d;
    background: #51d6a8;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.message {
    display: none;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.message.error {
    display: block;
    color: #ffabb1;
    background: rgba(255, 100, 112, 0.1);
    border-color: rgba(255, 100, 112, 0.3);
}

.message.success {
    display: block;
    color: #bff8e5;
    background: rgba(81, 214, 168, 0.1);
    border-color: rgba(81, 214, 168, 0.35);
}

.password-note {
    margin: 8px 0 0;
    color: #6f849f;
    font-size: 12px;
    line-height: 1.45;
}

.back-link {
    margin-top: 22px;
    text-align: center;
}

.back-link a {
    color: #7ce4c0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link a:hover,
.back-link a:focus {
    text-decoration: underline;
}

.security {
    margin-top: 24px;
    color: #6f849f;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

[hidden] {
    display: none !important;
}
