* {
    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: #fbfbfb;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    border-bottom: 1px solid #bababa3c;
    font-size: 27px;
    background-color: #fbfbfb;
}

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

.profile-box img.logo-ava {
    position: absolute;
    width: 25px;
    bottom: 0;
    left: 60%;
    border-radius: 50%;
    /* transform: translateY(30%); */
}




.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));
    min-height: 700px;
}

.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: 32px;
    position: relative;
}
.title-box {
    width: 100%;
    background-color: #f0f0f099;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    /* border-bottom-right-radius: 64px; */
}
.title-box .title-content {
    display: flex;
    align-items: center;
    gap: 15px;
    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;
}
.with-icon {
    width: 16px;
    opacity: 0.4;
}

.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%;
    object-fit: cover;
}

.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: 20px;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-wrap {
    border: 3px solid #2c2c2c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    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.ava {
        /* margin-top: 10px; */
        /* margin-left: -30px; */
        width: 100%;
    }
    .profile-box img.logo-ava {
        width: 15px;
    }
    /* 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
    }
}




:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #1f2937;
    --muted: #6b7280;
    --green: #16c784;
    --green-hover: #12b374;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

header,
.logo {
    background: white;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 24px;
    font-weight: 600;
    padding: 18px 30px;
}

header {
    padding: 12px 40px;
    font-size: 18px;
}

main {
    min-height: calc(100vh - 140px);
}

.main-box {
    max-width: 1300px;
    width: 100%;
    gap: 80px;
}

.box.left h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
}

.box.left h4 {
    color: var(--muted);
    font-size: 18px;
    max-width: 500px;
}

.main-box .box form {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 30px;
    padding-top: 90px;
}

.title-box {
    background: #f3f4f6;
    border-bottom: 1px solid var(--border);
}

.title-box .title-content {
    background: white;
    border-right: 1px solid var(--border);
    font-size: 17px;
    font-weight: 600;
    padding: 18px 24px;
}

.form-group {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    transition: .2s;
}

.form-group:focus-within {
    border-color: var(--green);
    background: white;
}

.form-box input {
    font-size: 18px;
    background: transparent;
    color: var(--text);
}

.form-title {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-actives {
    background: #eefaf5;
    color: #0f8f5f;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.submit-btn {
    background: var(--green);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    padding: 16px;
}

.submit-btn:hover {
    background: var(--green-hover);
}

.submit-btn:active {
    transform: scale(.98);
}

.loader-box {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
}

.fa-spinner {
    color: var(--green);
}

.warning {
    color: #dc2626;
    font-size: 13px;
}

.btn-box button {
    border-radius: 10px;
    font-weight: 500;
}

.second-btn {
    background: #f3f4f6;
}

.second-btn:hover {
    background: #e5e7eb;
}


.market-ticker {
    width: 100%;
    height: 48px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: tickerMove 35s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.symbol {
    color: #fff;
    font-weight: 700;
}

.price {
    color: #d1d5db;
}

.change {
    font-weight: 600;
}

.ticker-item.up .change {
    color: #16c784;
}

.ticker-item.down .change {
    color: #ea3943;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


.symbol::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}