* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
input[type="number"] {
  -moz-appearance: textfield; /* ебучий Firefox */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; /* хромоподобная шобла */
  margin: 0;
}
body {
    font-family: Arial, sans-serif;
    /* line-height: 1.6; */
    background-color: #fff;
    min-width: 320px;
}
.logo {
    padding: 20px;
    font-size: 30px;
    font-weight: 400;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bababa3c;
    background-color: #fff;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    border-bottom: 1px solid #bababa3c;
    font-size: 27px;
    background-color: #fff;
}

.profile-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.img-box {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-box img {
    margin-top: 20px;
    margin-left: -55px;
    width: 195px;
    image-rendering: auto;
}




.bg-squares {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  top: 160px;
  width: 30vw;
}

/* базовый вид квадратиков */
.bg-squares span {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0,0,0,0.02);
  border-radius: 6px;
}

/* раскидываем по экрану как на картинке */
.bg-squares span:nth-child(1) { top: 10%; left: 15%; }
.bg-squares span:nth-child(2) { top: 30%; left: 35%; }
.bg-squares span:nth-child(3) { top: 20%; left: 55%; }
.bg-squares span:nth-child(4) { top: 50%; left: 25%; }
.bg-squares span:nth-child(5) { top: 60%; left: 50%; }



.bg-squares span {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  animation: float 18s ease-in-out infinite;
}

/* разное время/задержка, чтобы не в такт */
.bg-squares span:nth-child(2) { animation-duration: 7s; animation-delay: -4s; }
.bg-squares span:nth-child(3) { animation-duration: 5.2s; animation-delay: -8s; }
.bg-squares span:nth-child(4) { animation-duration: 4.20s; animation-delay: -2s; }
.bg-squares span:nth-child(5) { animation-duration: 6.24s; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 1; }
  50%      { transform: translateY(-20px) translateX(10px); opacity: 0; }
}


main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - (75px + 81px));
}

.main-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    border-top-left-radius: -30px;
    padding: 100px;
}
.main-box .box {
    min-width: calc(50% - 25px);
    display: none;
}
.main-box .box.active {
    display: block;
    animation: show-in-form 0.3s ease;
}
.box.left h1 {
    font-size: 59px;
    font-weight: 700;
    margin-bottom: 12px;
}
.box.left h4 {
    font-size: 24px;
    font-weight: 300;
    color: #2c2c2c;
}
.main-box .box form {
    background-color: #fff;
    padding: 26px;
    padding-top: calc(26px + 24px + 26px + 24px);
    overflow: hidden;
    box-shadow: 0px 0px 10px #0000002a;
    border-radius: 16px;
    position: relative;
}
.title-box {
    width: 100%;
    background-color: #f0f0f099;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    border-bottom-right-radius: 16px;
}
.title-box .title-content {
    padding: 12px 24px;
    background-color: white;
    width: fit-content;
    font-weight: 500;
    font-size: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.form-group {
    padding: 16px 26px;
    border: 1px solid #00000024;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 5px;
}
.form-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.form-box input {
    border: none;
    outline: none;
    font-size: 20px;
    margin-top: 8px;
    width: 100%;
}
.form-title {
    color: #4f4f4f;
}
.form-actives {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 20px;
    gap: 6px;
    background-color: #00000009;
}
.form-actives img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.form-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 0 16px;
    margin-bottom: 32px;
}
.form-subtitle button {
    background: none;
    outline: none;
    border: none;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}
.form-subtitle button.hide {
    display: none;
}

.submit-btn {
    background-color: #2c2c2c;
    color: white;
    width: 100%;
    font-size: 26px;
    border: none;
    outline: none;
    border-radius: 32px;
    padding: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.2s;
}
.submit-btn:hover {
    background-color: #404040;
}
.submit-btn:active {
    transform: scale(0.98);
    background-color: #4b4b4b;
}

.loader-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    font-weight: 400;
}
.loader-box.active {
    display: flex;
    animation: show-in 0.3s ease;
}
.fa-spinner {
    font-size: 50px;
    color: #2c2c2c;
}
.form-group .view {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 400;
}
.warning {
    width: 100%;
    text-align: center;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.btn-box {
    display: flex;
    gap: 12px;
    width: 100%;
}
.btn-box button {
    width: 50%;
    border-radius: 12px;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.second-btn:hover {
    background-color: #d4d4d4;
}
#form-error-label {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    color: #c42828;
    display: none;
    font-weight: 400;
    font-size: 14px;
}
#form-error-label.active {
    display: block;
}
@keyframes show-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes show-in-form {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.error-content {
    position: relative;
    padding: 25px 15px;
    text-align: center;
    color: #2c2c2c;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.error-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.error-desc {
    margin-top: 8px;
    margin-bottom: 26px;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.4;
}

/* Узоры сверху и снизу */
.error-decoration {
    width: 100%;
    height: 8px;
    background:
        repeating-linear-gradient(
            45deg,
            #2c2c2c 0,
            #2c2c2c 5px,
            transparent 5px,
            transparent 10px
        );
    opacity: 0.3;
}

.error-decoration.top {
    margin-bottom: 20px;
}

.error-decoration.bottom {
    margin-top: 25px;
}

/* Кнопка поддержки */
.support-btn {
    margin-top: 18px;
    padding: 12px 18px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
    text-decoration: none;
}

.support-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


@media (max-width: 1150px) {
    .form-box input {
        font-size: 16px;
    }
    .box.left h1 {
        font-size: 39px;
    }
    .box.left h4 {
        font-size: 18px;
    }
}
@media (max-width: 1070px) {
    .form-actives {
        font-size: 14px;
    }
    .form-actives img {
        width: 20px;
        height: 20px;
    }
    .submit-btn {
        font-size: 20px;
    }
}
@media (max-width: 1000px) {
    .main-box {
        gap: 10px;
    }
}
@media (max-width: 970px) {
    .form-group {
        padding: 16px;
    }
    .main-box {
        padding: 50px;
    }
}
@media (max-width: 900px) {
    .form-group {
        padding: 10px;
    }
}
@media (max-width: 790px) {
    .form-subtitle {
        font-size: 12px;
    }
    .main-box .box form {
        padding-left: 12px;
        padding-right: 12px;
    }
    .form-title {
        font-size: 12px;
    }
    .main-box {
        padding: 25px;
    }
}
@media (max-width: 700px) {
    main {
        height: auto;
    }
    .main-box {
        flex-direction: column;
    }
    .main-box .box {
        width: auto;
    }
    .main-box .box.left {
        width: 70%;
    }
    .box.left h1 {
        font-size: 32px;
        width: 100%;
        text-align: center;
    }
    .box.left h4 {
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    .form-box input {
        min-width: 180px;
    }
    .main-box .box.left {
        text-shadow: 0px 5px 5px #00000018;
    }
}
@media (max-width: 660px) {
    header {
        font-size: 20px;
    }
    .logo {
        font-size: 24px;
    }
    .img-box {
        width: 30px;
        height: 30px;
    }
    .profile-box img {
        margin-top: 10px;
        margin-left: -30px;
        width: 110px;
    }
    /* margin-top: 20px;
    margin-left: -55px;
    width: 195px; */
}
@media (max-width: 500px) {
    header {
        padding: 10px 10px;
    }
    .main-box .box {
        width: auto;
    }
    .main-box .box.left {
        width: auto;
    }
    .bg-squares {
        top: 60px;
        width: 70vw;
    }
    .bg-squares span {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 420px) {
    .box.left h1 {
        font-size: 24px;
    }
    .box.left h4 {
        font-size: 15px;
    }
}
@media (max-width: 400px) {
    header {
        font-size: 16px;
    }
    body {
        min-width: 360px
    }
}