@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Open+Sans&family=Inter:ital,wght@0,200;0,300;0,400..800;1,300..800&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #1a365d;
    --secondary: #d4af37;
    --light: #f8f5f0;
    --dark: #0d1b2a;
    --accent: #d4af37;
    --transition: all 0.3s ease;
    --radius-lg: 60px;
    --radius-sm: 21px;
    --max-width: 1600px;
    --padding-l-r: calc(16px + (32 - 16) * ((100vw - 300px) / (1600 - 300)));
    --padding-t-b: calc(10px + (12 - 10) * ((100vw - 300px) / (1600 - 300)));
    --fs22-64px: calc(22px + (64 - 22) * ((100vw - 300px) / (1600 - 300)));
}

body {
    font-family: 'Open sans', sans-serif !important;
    margin: 0;
    padding: 0;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    display: flex;
}

.divsingin {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 23px;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Блокировочный контейнер */
.flood-block-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    text-align: center;
    border-radius: 31px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Скрыт по умолчанию */
}

/* Стили для различных типов блокировок */
.flood-block-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.flood-block-timer {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;
    color: #dc3545;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 21px;
    border: 1px solid #e9ecef;
}

.flood-block-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.5;
}

/* Типы сообщений */
.block-account {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
}

.block-ip {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.block-protected {
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
}

/* Кнопка (заблокированная) */
.button-blocked {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.button-blocked::after {
    content: "⏳";
    position: absolute;
    right: 10px;
}

/* Счетчик попыток */
.attempts-counter {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
}

.w100 {
    width: 100% !important;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.form-batya {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    padding: 30px;
    width: 400px;
    margin: 20px;
    border-radius: 31px;
    outline: 1px solid rgb(221, 221, 221);
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.form button {
    align-self: flex-end;
}

.flex-column>label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #151717;
    font-weight: 600;
}

.inputForm {
    position: relative;
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: 0.2s ease-in-out;
    overflow: hidden;
}

.inputForm svg:first-child {
    position: absolute;
    left: calc(0% + 15px);
}

.inputForm svg:last-child {
    position: absolute;
    right: calc(0% + 15px);
}

.input {
    border: none;
    width: 100%;
    height: 100%;
    padding: 0px 0px 0px 55px;
}

.input:focus {
    outline: none;
}

.inputForm:focus-within {
    border: 2.5px solid var(--primary);
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.flex-row>div>label {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.span {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
}

.button-submit {
    margin: 20px 0 0px 0;
    height: 50px;
    width: 100%;
    cursor: pointer;
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.button-submit:hover {
    background-color: transparent;
    color: var(--primary);
}

.p {
    text-align: center;
    color: black;
    font-size: 14px;
    margin: 5px 0;
}

.btn {
    margin-top: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 10px;
    border: 1px solid #ededef;
    background-color: white;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.btn:hover {
    border: 1px solid #2d79f3;
}

.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    z-index: 2;
}

/* Контейнер для иконки и анимации */
.toggle-container {
    overflow: hidden;
    position: relative;
    width: 20px;
    height: 20px;
}

/* Шторка */
.toggle-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 45%, #000000 45%, #000000 55%, transparent 55%, transparent 100%);
    transform: translateX(-100%) translateY(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 3;
    pointer-events: none;
}

/* Состояние, когда пароль скрыт */
.password-hidden .toggle-curtain {
    transform: translateX(0%) translateY(0%);
}

/* Иконка глаза */
.eye-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.password-hidden .eye-icon {
    opacity: 0.3;
}

/* Анимация линии */
.toggle-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4444;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease 0.1s;
    z-index: 2;
}

.password-hidden .toggle-line {
    transform: translateY(-50%) scaleX(1);
}

.checkbox-wrapper-46 input[type="checkbox"] {
  display: none;
  visibility: hidden;
}

.checkbox-wrapper-46 .cbx {
  margin: auto;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
.checkbox-wrapper-46 .cbx span {
  display: inline-block;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-46 .cbx span:first-child {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  transform: scale(1);
  vertical-align: middle;
  border: 1px solid #9098a9;
  transition: all 0.2s ease;
}
.checkbox-wrapper-46 .cbx span:first-child svg {
  position: absolute;
  top: 3px;
  left: 2px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
  transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-46 .cbx span:first-child:before {
  content: "";
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: block;
  transform: scale(0);
  opacity: 1;
  border-radius: 50%;
}
.checkbox-wrapper-46 .cbx span:last-child {
  padding-left: 8px;
}
.checkbox-wrapper-46 .cbx:hover span:first-child {
  border-color: var(--primary);
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child {
  background: var(--primary);
  border-color: var(--primary);
  animation: wave-46 0.4s ease;
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child:before {
  transform: scale(3.5);
  opacity: 0;
  transition: all 0.6s ease;
}

@keyframes wave-46 {
  50% {
    transform: scale(0.9);
  }
}


@media (max-width: 600px) {
    .flood-block-container {
        margin: 20px;
        padding: 20px;
    }

    .flood-block-timer {
        font-size: 24px;
    }
}