* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
}

.app {
    display: grid;
    grid-template-rows: 28px 110px 1fr 80px;
    height: 100vh;
    width: 100vw;
}

.app--blurred {
    filter: blur(6px) saturate(0.9);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.has-modal {
    overflow: hidden;
}

.card__subtitle {
    text-align: center;
    font-size: 14px;
    color: #475569;
    margin-top: -6px;
}

.dashboard__placeholder {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: dashboardShimmer 1.8s ease-in-out infinite;
}

.dashboard__placeholder:nth-child(even) {
    width: 80%;
}

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

.top-strip {
    background: #f3f4f6;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo {
    width: 260px;
    height: 72px;
    background-image: url("./images/logoHeader.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.main__left {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #1f2937;
}

.card__title {
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}


.card__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card__label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.card__error {
    font-size: 13px;
    color: #ef4444;
    line-height: 1.2;
}

.card__error:empty {
    display: none;
}

.card__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.card__input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 16px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card__input::placeholder {
    color: #9ca3af;
}

.card__input:focus {
    border-width: 3px;
    border-color: #16a34a;
    box-shadow: none;
}

.card__input.is-invalid {
    border-width: 1px;
    border-color: #cfd6df !important;
}

.card__input.is-invalid:focus {
    border-width: 3px;
    border-color: #16a34a !important;
}

.card__input[aria-invalid="true"] {
    border-width: 1px;
    border-color: #cfd6df !important;
}

.card__input[aria-invalid="true"]:focus {
    border-width: 3px;
    border-color: #16a34a !important;
}

.card__input-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
}

.card__input-icon:hover {
    color: #111827;
}

.card__action {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    min-width: 170px;
    padding: 0 22px;
    background: #1f8a4c;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.card__button:hover {
    background: #187540;
}

.card__button:active {
    transform: translateY(1px);
}

.card__button[disabled],
.card__button.is-loading {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.85;
    pointer-events: none;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.modalDataLoading .modal__dialog {
    max-width: 560px;
}

.modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal__input--uppercase {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modal__waiting {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 2px;
}

.modal__waiting-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.18);
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal__waiting-pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.35);
    animation: waitingPulse 1.8s ease-out infinite;
    z-index: 0;
}

.modal__waiting-pulse--delay {
    animation-delay: 0.9s;
}

@keyframes waitingPulse {
    0%   { transform: scale(0.7); opacity: 0.6; }
    80%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.modal__dots {
    display: inline-flex;
    gap: 6px;
    margin-top: 4px;
}

.modal__dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    opacity: 0.25;
    animation: dotsBounce 1.2s ease-in-out infinite;
}

.modal__dots span:nth-child(2) { animation-delay: 0.15s; }
.modal__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotsBounce {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40%           { opacity: 1;    transform: translateY(-4px); }
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #0b1b33;
    color: #ffffff;
    border-radius: 18px;
    padding: 28px 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(31, 138, 76, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.modal__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.modal__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 4px;
}

.modal__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

.modal__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    width: 100%;
    text-align: left;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
}

.modal__notice-icon {
    flex-shrink: 0;
    display: flex;
    margin-top: 1px;
    color: #fbbf24;
}

.modal__notice-text {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #f1f5f9;
}

.modal__button {
    width: 100%;
    height: 48px;
    background: #1f8a4c;
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.modal__button:hover {
    background: #187540;
}

.modal__button:active {
    transform: translateY(1px);
}

.modal__step[hidden] {
    display: none;
}

.modal__step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal__stepper {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    align-self: flex-start;
}

.modal__stepper strong {
    color: #ffffff;
}

.modal__subtitle--center {
    text-align: center;
}

.modal__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.modal__label {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.modal__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #0f2747;
    border: 1px solid #1f3a63;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.modal__input::placeholder {
    color: #64748b;
}

.modal__input:focus {
    border-color: #16a34a;
    border-width: 2px;
}

.modal__input.is-invalid {
    border-color: #ef4444 !important;
}

.modal__error {
    font-size: 12px;
    color: #fca5a5;
    line-height: 1.2;
    margin: 0;
}

.modal__error:empty {
    display: none;
}


.main__right {
    overflow: hidden;
}

.main__image {
    width: 100%;
    height: 100%;
    background-image: url("./images/background-right.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.footer {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.footer__logo {
    height: 16px;
    width: 112px;
    background-image: url("./images/logoDark.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

.footer__text {
    margin-left: auto;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: right;
}
