.content h1,.content h1 a{ text-align:center; text-decoration:none;}
.content input{ margin:10px 0px 10px 0px; height:50px; }

#reg_by_vk{ margin:0 auto; display:block; position:relative; width:400px; float:right; background:url('/img/logo-vk-full.jpg') no-repeat; background-position:right; background-size:contain; text-align:left; border:0px;}

#reg_by_google{ margin:0 auto; display:block; position:relative; width:50px; float:right; background:url('/img/google.png') no-repeat; background-position:right; background-size:contain; text-align:left; border:0px;}


#reg_by_facebook{ margin:0 auto; display:block; position:relative; width:50px; float:right; background:url('/img/fb_icon_325x325.png') no-repeat; background-position:right; background-size:contain; text-align:left; border:0px;}




/* xs — до 575px */
@media screen and (max-height: 575.98px) {
    #loginForm {
        min-height: 500px;
    }
}
/* sm — 576px і більше */
@media screen and (min-height: 576px) and (max-height: 767.98px) {
  #loginForm {
    min-height: 600px;
  }
}

/* md — 768px і більше */
@media screen and (min-height: 768px) and (max-height: 991.98px) {
  #loginForm {
    min-height: 700px;
  }     
  }


/* lg — 992px і більше */
@media screen and (min-height: 992px) and (max-height: 1199.98px) {
  #loginForm {
    min-height: 800px;
  }
}

/* xl — 1200px і більше */
@media screen and (min-height: 1200px) and (max-height: 1399.98px) {
  #loginForm {
    min-height: 900px;
  }
}

/* xxl — 1400px і більше */
@media screen and (min-height: 1400px) {
  #loginForm {
    min-height: 1000px;
  }
}

.trust-block {
    cursor: default;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem;
    transition: all 0.3s ease-in-out;
    max-width: 350px; /* ширина блоку */
    overflow: hidden;
  }

  /* текст прихований за замовчуванням */
  .trust-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
  }

  /* при hover */
  .trust-block:hover {
    padding: 0.25rem 0.5rem;
    color: #fff;
  }

  .trust-block:hover .trust-text {
    max-width: 280px; /* розкриття блоку */
    opacity: 1;
    margin-right: 0.5rem;
  }

  /* іконки кольорові у нормі */
  .trust-success i { color: #198754; }
  .trust-danger i { color: #dc3545; }

  /* при hover стають білими */
  .trust-block:hover i {
    color: #fff !important;
  }

  /* фон при hover */
  .trust-success:hover { background-color: #198754; }
  .trust-danger:hover { background-color: #dc3545; }

  /* ефект пробігаючого рядка */
.trust-block:hover .trust-text span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 8s linear infinite;
  }

/* Login refresh: a calmer card, clear actions and touch-friendly controls. */
.login-card {
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 1rem 3rem rgba(31, 41, 55, .12);
}

.login-brand img {
    max-height: 88px;
    object-fit: contain;
}

.login-card .form-control {
    min-height: 58px;
    border-radius: .75rem;
}

.login-card .form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15);
}

.login-card .btn-primary {
    min-height: 52px;
    border-radius: .75rem;
    font-weight: 600;
}

.password-toggle {
    z-index: 3;
    min-width: 42px;
    min-height: 42px;
}

.social-login__label {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .875rem;
    margin-bottom: .75rem;
}

.social-login__label::before,
.social-login__label::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--bs-border-color, #dee2e6);
}

.social-login__button {
    flex: 1;
    min-height: 46px;
    border-radius: .75rem;
    font-weight: 500;
}

#reg_by_google,
#reg_by_facebook,
#reg_by_vk {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    background-position: .75rem center;
    background-size: 20px;
    padding-left: 2.5rem;
}

#reg_by_vk {
    width: 100%;
}

.login-trust {
    z-index: 4;
}

.trust-block:focus-visible,
.login-card a:focus-visible,
.login-card button:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb), .35);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .login-trust {
        transform: scale(.9);
        transform-origin: top right;
    }

    .trust-text {
        display: none;
    }

    .login-card {
        box-shadow: 0 .5rem 1.5rem rgba(31, 41, 55, .1);
    }
}

  @keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

/* Saved accounts share the form's visual hierarchy, with separate remove actions. */
.remembered-accounts[hidden],
.remembered-accounts__feedback[hidden],
.remembered-accounts__undo[hidden] { display: none; }

.remembered-accounts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.remembered-accounts__title {
    margin: 0;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
}
.remembered-accounts__clear,
.remembered-accounts__undo {
    flex-shrink: 0;
    min-height: 44px;
    padding: .5rem .25rem;
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    font: inherit;
    font-size: .8125rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.remembered-accounts__clear:hover,
.remembered-accounts__undo:hover { color: var(--bs-primary, #0d6efd); }
.remembered-accounts__hint {
    margin: 0 0 .75rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .8125rem;
    line-height: 1.5;
}
.remembered-accounts__list { display: grid; gap: .5rem; }
.remembered-account {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .875rem;
    background: var(--bs-body-bg, #fff);
    transition: border-color .15s ease, background-color .15s ease;
}
.remembered-account:hover,
.remembered-account:focus-within { border-color: var(--bs-primary, #0d6efd); }
.remembered-account.is-selected {
    border-color: var(--bs-primary, #0d6efd);
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .06);
}
.remembered-account__choose {
    display: flex;
    align-items: center;
    flex: 1;
    gap: .75rem;
    min-width: 0;
    min-height: 72px;
    padding: .75rem .5rem .75rem .875rem;
    border: 0;
    border-radius: .875rem;
    background: transparent;
    color: var(--bs-body-color, #212529);
    font: inherit;
    text-align: start;
}
.remembered-account__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .1);
    color: var(--bs-primary-text-emphasis, #084298);
    font-size: 1rem;
    font-weight: 600;
}
.remembered-account__copy { display: grid; gap: .125rem; min-width: 0; flex: 1; }
.remembered-account__name,
.remembered-account__login { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remembered-account__name { font-size: .875rem; font-weight: 600; }
.remembered-account__login { color: var(--bs-secondary-color, #6c757d); font-size: .75rem; }
.remembered-account__arrow { flex-shrink: 0; color: var(--bs-primary, #0d6efd); font-size: 1.125rem; }
.remembered-account__forget {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: .25rem;
    padding: 0;
    border: 0;
    border-radius: .625rem;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 1.5rem;
    line-height: 1;
}
.remembered-account__forget:hover {
    background: rgba(var(--bs-danger-rgb, 220, 53, 69), .08);
    color: var(--bs-danger, #dc3545);
}
.remembered-accounts__divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .75rem;
}
.remembered-accounts__divider::before,
.remembered-accounts__divider::after { content: ''; flex: 1; height: 1px; background: var(--bs-border-color, #dee2e6); }
.remembered-accounts__feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 1rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .8125rem;
    line-height: 1.5;
}
.remembered-accounts__undo { color: var(--bs-primary, #0d6efd); }

/* Override the old .content input rule so the checkbox stays compact. */
.login-card .remember-account {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .875rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .875rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    cursor: pointer;
}
.login-card .remember-account:has(input:checked) {
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), .5);
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .05);
}
.login-card .remember-account:focus-within {
    outline: 3px solid rgba(var(--bs-primary-rgb, 13, 110, 253), .25);
    outline-offset: 2px;
}
.login-card input.remember-account__input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: .125rem 0 0;
    accent-color: var(--bs-primary, #0d6efd);
    cursor: inherit;
}
.remember-account__copy { display: grid; gap: .25rem; min-width: 0; }
.remember-account__title { color: var(--bs-body-color, #212529); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.remember-account__hint { color: var(--bs-secondary-color, #6c757d); font-size: .75rem; line-height: 1.5; }
.remember-account:has(input:disabled) { cursor: default; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .remembered-account { transition: none; } }
