.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, rgba(47, 105, 255, 0.10), transparent 34%),
      radial-gradient(circle at bottom left, rgba(47, 105, 255, 0.16), transparent 38%),
      linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.login-page::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    left: -280px;
    bottom: -360px;
    border: 2px solid rgba(47, 105, 255, 0.08);
    border-radius: 50%;
}

.login-page::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -260px;
    background: rgba(47, 105, 255, 0.045);
    border-radius: 50%;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    min-height: 560px;
    padding: 48px 44px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(7, 27, 77, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(7, 27, 77, 0.12);
    backdrop-filter: blur(18px);
}

.step {
    display: none;
    animation: fadeIn 0.35s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

.icon-box {
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf3ff;
    color: #2764e8;
}

.auth-title {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.7px;
    color: #071b4d;
}

.auth-desc {
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: #64708b;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #071b4d;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a96ad;
}

.form-input {
    width: 100%;
    height: 58px;
    padding: 0 18px 0 52px;
    border: 1px solid #d8dfec;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    color: #071b4d;
    background: #ffffff;
    transition: 0.25s ease;
}

.form-input:focus {
    border-color: #2764e8;
    box-shadow: 0 0 0 4px rgba(39, 100, 232, 0.10);
}

.primary-btn {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2d6cff 0%, #1f55d8 100%);
    box-shadow: 0 12px 22px rgba(39, 100, 232, 0.22);
    transition: 0.25s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(39, 100, 232, 0.28);
}

.primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.secure-note {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #e6ebf4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #64708b;
}

.email-preview {
    margin-top: -20px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 14px;
    color: #64708b;
}

.email-preview strong {
    color: #071b4d;
}

.change-mail {
    margin-left: 8px;
    border: none;
    background: transparent;
    color: #2764e8;
    font-weight: 700;
    cursor: pointer;
}

.code-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.code-input {
    width: 100%;
    height: 62px;
    border: 1px solid #d8dfec;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #071b4d;
    outline: none;
    transition: 0.25s ease;
}

.code-input:focus {
    border-color: #2764e8;
    box-shadow: 0 0 0 4px rgba(39, 100, 232, 0.10);
}

.code-time {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #64708b;
}

.resend-btn {
    display: block;
    margin: 24px auto 0;
    border: none;
    background: transparent;
    color: #2764e8;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.message {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.message.error {
    display: block;
    color: #b42318;
    background: #fff1f0;
}

.message.success {
    display: block;
    color: #067647;
    background: #ecfdf3;
}

@media (max-width: 600px) {
    .auth-card {
      padding: 36px 24px;
      border-radius: 22px;
    }

    .auth-title {
      font-size: 28px;
    }

    .code-inputs {
      gap: 8px;
    }

    .code-input {
      height: 54px;
      font-size: 20px;
    }
}