.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 18px;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.3)),
        url('../images/bg-wallpaper-1.jpeg') center / cover no-repeat;
}

.auth-panel {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 32px;
    align-items: center;
}

.auth-copy {
    color: #fff;
}

.auth-eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.auth-copy p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.auth-card-header {
    margin-bottom: 22px;
}

.auth-card-header h2 {
    margin: 0 0 6px;
    color: #111;
    font-size: 1.45rem;
    font-weight: 800;
}

.auth-card-header p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 7px;
    text-align: left;
}

.auth-field label {
    margin: 0;
    color: #222;
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-field .form-control,
.auth-field .form-select {
    min-height: 44px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
}

.auth-field textarea.form-control {
    min-height: 118px;
}

.auth-field .form-control:focus,
.auth-field .form-select:focus {
    border-color: #111;
    box-shadow: none;
}

.auth-primary-btn,
.sendCodeBtn {
    width: 100%;
    min-height: 46px;
    border: 1px solid #111;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-primary-btn:hover,
.sendCodeBtn:hover {
    background: #fff;
    color: #111;
    transform: translateY(-1px);
}

.auth-primary-btn:disabled,
.sendCodeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-links a {
    color: #111;
    font-weight: 800;
    text-decoration: underline;
}

.auth-message {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
}

.auth-message.error {
    color: #b42318;
}

.auth-message.success {
    color: #1d7d49;
}

.password-criteria {
    display: grid;
    gap: 6px;
    color: #777;
    font-size: 0.88rem;
    font-weight: 700;
}

.criteria-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: #b42318;
}

.criteria-item.valid {
    color: #1d7d49;
}

.criteria-item.valid .check-icon {
    color: #1d7d49;
}

.loader-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1060;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s;
}

.loader {
    border: 8px solid #fff;
    border-top: 8px solid #ffbd84;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-container.show {
    opacity: 1;
    visibility: visible;
}

.account-edit-page {
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.36)),
        url('../images/bg-wallpaper-1.jpeg') center / cover no-repeat;
}

.loginBtn {
    background: #111;
    color: #fff;
}

.button-container .loginBtn,
.button-container .sendCodeBtn {
    width: 100%;
}

@media (max-width: 900px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-copy {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 36px 14px;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-two-col {
        grid-template-columns: 1fr;
    }

    .auth-links {
        flex-direction: column;
    }
}
