.form-wrap {
    width: 100%;
    max-width: 360px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.form-header p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.alert-error {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 3px solid #e53e3e;
    background: #fff5f5;
    color: #c53030;
    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 3px solid var(--green-primary);
    background: #f3faf0;
    color: #2f6f1f;
    font-size: 13px;
    line-height: 1.5;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.label-row label {
    font-size: 13px;
    font-weight: 500;
    color: #2c2c3a;
    margin-bottom: 0;
}

.auth-link {
    font-size: 12px;
    color: var(--green-primary);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.18s;
}

.auth-link:hover {
    opacity: 0.78;
}

.input-wrap {
    position: relative;
}

.input-wrap-input{
    margin-top: 6px;
}

.input-wrap .icon-left {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c0cf;
    font-size: 12px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 10.5px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--input-bg);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.input-wrap input::placeholder {
    color: #bbbbc8;
}

.input-wrap input:focus {
    border-color: var(--green-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--green-focus-ring);
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #bbbbc8;
    font-size: 12px;
    line-height: 1;
    transition: color 0.18s;
}

.eye-btn:hover {
    color: #717182;
}

.captcha-group {
    margin-bottom: 18px;
}

.captcha-group .g-recaptcha {
    border-radius: 8px;
    overflow: hidden;
}

.auth-submit {
    width: 100%;
    padding: 11.5px;
    background: var(--green-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.15px;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 0;
}

.auth-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.auth-submit:active {
    opacity: 1;
    transform: translateY(0);
}

.request-row {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.request-row a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s;
}

.request-row a:hover {
    opacity: 0.8;
}

.form-legal {
    text-align: center;
    margin-top: 24px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

.form-legal a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-legal:first-child {
    display: block;
    margin-bottom: 0;
    background-color: red;
}

body.login {
    background: #eee;
}

.login #container {
    background: white;
    border: 1px solid #ccc;
    width: 28em;
    min-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
}

.login #content-main {
    width: 100%;
}

.login form {
    margin-top: 1em;
}

.login .form-row {
    padding: 4px 0;
    float: left;
    width: 100%;
}

.login .form-row label {
    padding-right: 0.5em;
    line-height: 2em;
    font-size: 1em;
    clear: both;
    color: #333;
}

.login .form-row #id_username,
.login .form-row #id_password {
    clear: both;
    padding: 6px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.login span.help {
    font-size: 10px;
    display: block;
}

.login .submit-row {
    clear: both;
    padding: 1em 0 0 9.4em;
}

.login .password-reset-link {
    text-align: center;
}
