* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f0eb;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 10px;
}

.header-block {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
}

.header-block h1 {
    font-size: 2em;
    color: #c2185b;
    margin-bottom: 10px;
}

.header-block .mission {
    font-size: 1.05em;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

.auth-reason {
    text-align: center;
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1em;
    color: #444;
    line-height: 1.6;
}

.auth-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #333;
}

.auth-form-wrapper {
    border: 2px solid #90a4ae;
    border-radius: 6px;
    padding: 25px 30px;
    max-width: 480px;
    width: 100%;
    background: #fff;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    width: 100px;
    font-weight: bold;
    font-size: 1em;
    flex-shrink: 0;
}

.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #90a4ae;
    border-radius: 4px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.form-row input[type="text"]:focus,
.form-row input[type="password"]:focus {
    border-color: #c2185b;
}

.remember-row {
    display: flex;
    align-items: center;
    margin-top: 5px;
    padding-left: 100px;
}

.remember-row input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-row label {
    font-size: 0.95em;
    color: #555;
    cursor: pointer;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    max-width: 480px;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-actions a,
.auth-actions button {
    text-decoration: none;
    font-size: 0.95em;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 5px 0;
}

.auth-actions button {
    color: #c2185b;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.3s;
}

.auth-actions button:hover {
    color: #880e4f;
}

.auth-actions a {
    color: #555;
    transition: color 0.3s;
}

.auth-actions a:hover {
    color: #c2185b;
}

footer {
    background-color: #37474f;
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
}

footer h3 {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 1.2em;
}

footer p {
    margin: 4px 0;
    font-size: 0.95em;
}

footer a {
    color: #ffc107;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .header-block h1 {
        font-size: 1.5em;
    }

    .auth-form-wrapper {
        padding: 18px 15px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        width: 100%;
        margin-bottom: 5px;
    }

    .form-row input[type="text"],
    .form-row input[type="password"] {
        width: 100%;
    }

    .remember-row {
        padding-left: 0;
    }

    .auth-actions {
        flex-direction: column;
        align-items: center;
    }
}