* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card__heading {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.card__text {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    text-align: center;
}

.errors {
    width: 100%;
    padding: 16px;
    margin-bottom: 24px;
    background-color: #fff5f5;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #e53935;
    border-radius: 8px;
}

.errors ul {
    list-style: none;
    color: #c62828;
    font-size: 14px;
}

.errors li {
    padding: 4px 0;
}

.form-register {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.row {
    display: flex;
    gap: 16px;
}

.row .form-group {
    flex: 1;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 44px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: #fafafa;
    transition: border-color 0.2s, background-color 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #ffffff;
}

.input-wrapper input::placeholder {
    color: #999;
}

/* SVG-иконка слева */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #999;
    pointer-events: none;
    transition: stroke 0.2s;
}

.input-wrapper:focus-within .input-icon {
    stroke: #1a1a1a;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #333;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.toggle-password .eye-off {
    display: none;
}

.toggle-password.active .eye-on {
    display: none;
}

.toggle-password.active .eye-off {
    display: block;
}

/* ===== Кнопка ===== */
.btn {
    width: 100%;
    height: 50px;
    padding: 0 24px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.btn:hover {
    background-color: #333;
}

/* ===== Ссылка ===== */
.login-link {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    color: #666;
}

.login-link a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 20px;
    }
    .card {
        padding: 32px 24px;
    }
    .card__heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 24px 20px;
    }
    .card__heading {
        font-size: 24px;
    }
}
