.auth-page {
    min-height: 100vh;
    color: #fff;
    background:
        linear-gradient(rgba(8, 8, 10, 0.76), rgba(8, 8, 10, 0.76)),
        url('/static/image/Frame 11.png') center center / cover no-repeat fixed;
}

.auth-page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-page-shell--top {
    align-items: flex-start;
    padding-top: 48px;
}

.auth-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.auth-notifications {
    max-width: 500px;
}

.auth-modal-card {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
}

.auth-modal-body {
    background-color: #121212;
}

.auth-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.auth-link-muted {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.auth-link-muted:hover {
    color: #fff;
}

.auth-denied-card {
    width: min(560px, 100%);
    background: rgba(18, 18, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 38px 34px 32px;
    text-align: center;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.auth-denied-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-color);
    color: #fff;
    font-size: 36px;
    background: rgba(255, 255, 255, 0.03);
}

.rounded-pill,
.rounded-5,
.rounded-4,
.rounded-3,
.rounded-2,
.rounded-1,
.btn:not(.btn-close):not(.rounded-circle),
.card,
.modal-content,
.offcanvas,
.dropdown-menu,
.input-custom,
.comment-input,
.sidebar-search-input,
.form-control,
textarea,
select,
.auth-card-centered,
.auth-modal-card,
.auth-info-box,
.auth-denied-card,
.btn-primary-custom,
.btn-outline-custom,
.btn-link {
    border-radius: 16px !important;
}

.auth-denied-title {
    font-family: 'MTSExtended', 'Inter', sans-serif;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    font-weight: 400;
}

.auth-denied-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.auth-denied-primary {
    width: 100%;
    margin-top: 12px;
}

.auth-denied-logout {
    display: inline-block;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
}

.auth-denied-logout:hover {
    color: #fff;
}

/* Global auth radii standardization */
.auth-page .rounded-pill,
.auth-page .rounded-5,
.auth-page .rounded-4,
.auth-page .rounded-3,
.auth-page .rounded-2,
.auth-page .rounded-1,
.auth-page .btn:not(.btn-close):not(.rounded-circle),
.auth-page .card,
.auth-page .modal-content,
.auth-page .dropdown-menu,
.auth-page .input-custom,
.auth-page .comment-input,
.auth-page .sidebar-search-input,
.auth-page .form-control,
.auth-page textarea,
.auth-page select,
.auth-page .auth-card-centered,
.auth-page .auth-modal-card,
.auth-page .auth-info-box,
.auth-page .auth-denied-card,
.auth-page .btn-primary-custom,
.auth-page .btn-outline-custom,
.auth-page .btn-link {
    border-radius: 16px !important;
}

/* Signup helpers */
.auth-logo-img--sm {
    height: 30px;
    width: auto;
    display: block;
}

.signup-preview-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    display: none;
}

.signup-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signup-crop-container {
    max-width: 100%;
    max-height: 400px;
    display: none;
    margin-top: 20px;
}

.signup-crop-image {
    max-width: 100%;
}

.auth-denied-logout i {
    margin-right: 6px;
}

.auth-cycler {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.auth-cycler-track {
    display: inline-block;
    min-width: max-content;
    color: var(--accent-color);
}

.auth-cycler-word {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .auth-denied-card {
        padding: 32px 20px 26px;
        border-radius: 16px;
    }

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

    .auth-denied-icon {
        width: 72px;
        height: 72px;
        font-size: 30px;
        margin-bottom: 16px;
    }
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    height: 600px;
}

.auth-card-centered {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 60px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.signup-step {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.signup-step.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

#photoInput {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    width: 100%;
}

.file-upload-label:hover {
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-rgb), 0.05);
}

.file-upload-label svg {
    color: var(--accent-color);
}

@media (max-width: 991.98px) {
    .auth-card {
        flex-direction: column;
        max-width: 100%;
        border: none;
        border-radius: 16px;
        min-height: 100vh;
        background-color: var(--bg-dark);
    }

    .auth-container {
        padding: 0;
    }

    .auth-form-side {
        padding: 40px 24px;
        flex: 1;
        width: 100%;
    }

    .auth-image-side {
        display: none !important;
    }
}

.auth-form-side {
    padding: 60px;
    flex: 0 0 50%;
    /* Ровно 50% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-image-side {
    flex: 0 0 50%;
    /* Ровно 50% */
    background-color: #1a1a1e;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
    position: relative;
    /* Для абсолютного позиционирования картинки */
    overflow: hidden;
}

.auth-image-side img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-placeholder {
    width: 100%;
    height: 100%;
}

.auth-logo {
    margin-bottom: 32px;
}

.auth-logo img {
    height: 30px;
    width: auto;
}

.auth-header {
    text-align: left;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}
