
/* ---------------- Регистрация ---------------- */

.register-page{

    display:flex;

    justify-content:center;

    padding:60px 0;

}


.register-card{
    width: 100%;
    max-width: 650px;   /* Ширина карточки */
    padding: 40px;
    background: rgba(255,255,255,.95);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.register-card h1{

    text-align:center;

    margin-bottom:10px;

    font-size:34px;

}

.subtitle{

    text-align:center;

    color:#777;

    margin-bottom:35px;

}

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.form-control{

    width:100%;

    padding:15px;

    border:1px solid #ddd;

    border-radius:12px;

    font-size:16px;

    transition:.25s;

    outline:none;

}

.form-control:focus{

    border-color:#C9A96E;

    box-shadow:0 0 0 4px rgba(201,169,110,.15);

}

.gold-btn{

    width:100%;

    margin-top:20px;

    padding:16px;

    border:none;

    border-radius:12px;

    background:#C9A96E;

    color:white;

    font-size:17px;

    cursor:pointer;

    transition:.3s;

    background:linear-gradient(
        135deg,
        #D8BC82,
        #B88A44
    );

}

.gold-btn:hover{

    background:#b99355;

}

.login-link{

    text-align:center;

    margin-top:25px;

}

.login-link a{

    color:#C9A96E;

    text-decoration:none;

    font-weight:600;

}

.forgot-password-link{
    margin-top:12px;
    text-align:center;
}

.forgot-password-link a{
    color:#7a6a55;
    font-weight:600;
    text-decoration:none;
}

.forgot-password-link a:hover{
    color:#B88A44;
    text-decoration:underline;
    text-underline-offset:3px;
}

.errorlist{

    list-style:none;

    margin-top:8px;

    color:#d63031;

    font-size:14px;

    padding:0;

}

.form-errors{

    background:#fff2f2;

    color:#d63031;

    padding:15px;

    border-radius:12px;

    margin-bottom:25px;

}

.registration-error-summary {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid #efb8b8;
    border-radius: 14px;
    color: #8e2929;
    background: #fff3f3;
}

.registration-error-summary strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.registration-error-summary p {
    margin: 0 0 8px;
    color: #a24b4b;
    font-size: 14px;
}

.registration-error-summary ul,
.registration-field-error .errorlist {
    margin: 0;
    padding-left: 19px;
}

.registration-error-summary li + li {
    margin-top: 4px;
}

.input-box.input-box--error {
    margin-bottom: 7px;
    border-color: #d85b5b;
    box-shadow: 0 0 0 3px rgba(216, 91, 91, .1);
}

.registration-field-error {
    margin: 0 4px 17px;
    color: #bd3434;
    font-size: 13px;
    line-height: 1.4;
}

.registration-field-error .errorlist {
    list-style: disc;
}

.registration-consents {
    margin: 24px 0 0;
    padding: 16px;
    border: 1px solid #eadfc9;
    border-radius: 16px;
    background: #fffaf2;
}

.registration-consents legend {
    padding: 0 8px;
    color: #6f5730;
    font-size: 15px;
    font-weight: 700;
}

.consent-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 34px;
}

.consent-row + .consent-row {
    margin-top: 8px;
}

.consent-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #b88a44;
    cursor: pointer;
}

.consent-row label {
    color: #4f4a43;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.consent-link {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #a27432;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.consent-link:hover,
.consent-link:focus-visible {
    color: #7d5622;
}

.consent-error {
    margin: 3px 0 4px 28px;
    color: #d63031;
    font-size: 13px;
}

.consent-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.consent-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(31, 27, 21, .64);
    opacity: 0;
    transition: opacity .2s ease;
}

.consent-modal[hidden] {
    display: none;
}

.consent-modal.is-open {
    opacity: 1;
}

.consent-modal__dialog {
    position: relative;
    width: min(100%, 680px);
    max-height: min(80vh, 720px);
    overflow: auto;
    padding: 32px;
    border: 1px solid rgba(216, 188, 130, .55);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
    transform: translateY(10px) scale(.98);
    transition: transform .2s ease;
}

.consent-modal.is-open .consent-modal__dialog {
    transform: translateY(0) scale(1);
}

.consent-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f5ecdd;
    color: #6f5730;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.consent-modal__close:hover,
.consent-modal__close:focus-visible {
    background: #ead8b9;
}

.consent-modal__dialog h2 {
    margin: 0 42px 20px 0;
    color: #3d3427;
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.2;
}

.consent-modal__body {
    color: #514a40;
    font-size: 15px;
    line-height: 1.65;
}

.consent-modal__body p {
    margin: 0 0 14px;
}

.consent-modal__body p:last-child {
    margin-bottom: 0;
}

.consent-modal__done {
    width: auto;
    min-width: 140px;
    margin-top: 24px;
}

body.consent-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .registration-consents {
        padding: 12px;
    }

    .consent-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .consent-link {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }

    .consent-error {
        margin-left: 28px;
    }

    .consent-modal {
        padding: 12px;
    }

    .consent-modal__dialog {
        padding: 28px 20px 20px;
        border-radius: 20px;
    }
}

.input-box{
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    border: 1px solid #ddd;
    border-radius: 12px;

    padding: 0 15px;

    background: #fff;
}

.input-box input{
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 16px;
    background: transparent;
}
.password-box .toggle-password{
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
}
.svg-reg{
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.login{
    display:flex;
    align-items:center;
    gap:12px;
}

.user-name{
    font-weight:600;
    color:#2F2F2F;
}

.login-btn,
.logout-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 20px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#D8BC82,#B88A44);
    color:#fff;
    text-decoration:none;
    font-size:15px;
    cursor:pointer;
    transition:.3s;
}

.login-btn:hover,
.logout-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(184,138,68,.25);
}

.logout-form{
    margin:0;
}

