:root {
    --bg-main: #2f4635;
    --bg-card: #3d5a45;
    --input-bg: #4d6b54;
    --btn-bg: #e5e5e5;
    --text-muted: #b5b5b5;
}

body {
    margin: 0;
    background: var(--bg-main);
    font-family: Arial, sans-serif;
    color: #fff;
}

.container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.card {
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* ===== FORM ===== */
.form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form h2 {
    margin: 0 0 25px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.input-group input {
    width: 100%;
    height: 48px;
    border-radius: 20px;
    border: none;
    background: var(--input-bg);
    padding: 0 0px 0 16px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

/* Иконки справа */
.input-group svg {
    position: absolute;
    right: 14px;
    top: 24px; /* сдвиг с учётом высоты инпута */
    width: 20px;
    height: 20px;
    fill: #b5b5b5;
    pointer-events: none;
}

.input-group svg.eye {
    pointer-events: auto;
    cursor: pointer;
}

.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.input-group.error input {
    border: 1px solid #ff4d4d;
}

/* Actions */
.actions {
    display: flex;
    justify-content: space-between;
    margin: 8px 6px 18px;
}

.actions span {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 20px;
    border: none;
    background: var(--btn-bg);
    font-weight: bold;
    cursor: pointer;
}

/* ===== КАРТИНКА СПРАВА (ОДНА) ===== */
.register-image {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
}

.register-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 700px) {
    .card {
        flex-direction: column;
        padding: 25px;
    }
    .register-image {
        display: none;
    }
}