/* Login & profile pages */

/* Login */
:root {
    --auth-blue: #0b5cff;
}
.auth-band {
    background: linear-gradient(180deg, #eaf2fd 0%, #f2f7fd 100%);
    padding: 0.765rem 0 0.85rem;
}
main:has(.auth-band) + .site-footer {
    margin-top: 0;
}
.auth-layout {
    display: flex;
    align-items: center;
}
.auth-aside {
    position: relative;
    flex: 0 0 60%;
    height: 555px;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
}
.auth-aside .carousel,
.auth-aside .carousel-inner,
.auth-aside .carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
}
.auth-aside .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-aside .carousel-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 48, 135, .94) 0%, rgba(12, 70, 170, .8) 38%, rgba(14, 78, 180, .25) 72%, rgba(14, 78, 180, 0) 90%),
        linear-gradient(0deg, rgba(8, 48, 135, .35) 0%, rgba(8, 48, 135, 0) 40%);
    pointer-events: none;
    z-index: 2; /* above the active fade slide (z-index: 1) */
}
.auth-aside-body {
    position: relative;
    z-index: 2;
    padding: 2.21rem 2.55rem;
    pointer-events: none;
    text-shadow: 0 1px 12px rgba(0, 20, 70, .25);
}
.auth-logo {
    height: 54px;
    margin-bottom: 1.6rem;
}
.auth-aside h2 {
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.1rem;
}
.auth-aside p {
    font-size: 1rem;
    line-height: 1.55;
    opacity: .95;
    margin-bottom: 1.6rem;
}
.auth-aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-aside li {
    display: flex;
    align-items: center;
    gap: 0.765rem;
    font-size: 1rem;
    margin-bottom: .85rem;
}
.auth-aside li span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 3px solid rgba(255, 255, 255, .35);
    background-clip: padding-box;
    color: var(--auth-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-dots {
    justify-content: flex-start;
    margin: 0 0 1.8rem 3rem;
    z-index: 3;
}
.auth-dots [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    opacity: .6;
}
.auth-dots .active {
    width: 36px;
    border-radius: 4px;
    opacity: 1;
}

.auth-main {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-left: -14px;
    z-index: 2;
    min-height: 530px;
    background: #fff;
    border-radius: 6px;
    padding: 2.38rem 2.337rem 1.87rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.auth-main > div {
    position: relative;
}
.auth-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    opacity: .8;
    -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%), linear-gradient(to left, #000 40%, transparent 95%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 25%, transparent 92%), linear-gradient(to left, #000 40%, transparent 95%);
    mask-composite: intersect;
}
.auth-main h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: .6rem;
    color: #0f172a;
}
.auth-sub {
    color: #556070;
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
}
.auth-label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .55rem;
    color: #0f172a;
}
.phone-input {
    display: flex;
    align-items: stretch;
    height: 52px;
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.phone-input:focus-within {
    border-color: var(--auth-blue);
    box-shadow: none;
}
.phone-input .prefix {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 0.935rem;
    font-weight: 600;
    font-size: .95rem;
    background: #f3f6fa;
    border-right: 1px solid #dfe4ec;
}
.flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}
.phone-input input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 0.935rem;
    font-size: 1.1rem;
    min-width: 0;
}
.phone-input input::placeholder {
    color: #9aa3af;
}
.invalid-msg {
    color: #dc2626;
    font-size: .8rem;
    min-height: 1.25rem;
    margin-top: .35rem;
}
.auth-btn {
    height: 52px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.auth-main .btn-primary {
    background: var(--auth-blue);
    border-color: var(--auth-blue);
}
.auth-main .btn-primary:hover {
    background: #0049d6;
    border-color: #0049d6;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.9rem 0 1.4rem;
    color: #8a93a1;
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e9ef;
}
.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    height: 52px;
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    background: #fff;
    font-weight: 600;
    font-size: .9rem;
    color: #101010;
    transition: background .15s;
}
.social-login:hover {
    background: #f7f9fc;
}
.social-login svg {
    width: 22px;
    height: 22px;
}
.social-login .fb {
    color: #1877f2;
    font-size: 1.35rem;
}
.emn-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #1d4ed8;
    border-radius: 5px;
    color: #e11d48;
    font-weight: 800;
    font-size: .9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-note {
    margin: 1.4rem 0 0;
    font-size: .82rem;
    color: #556070;
    text-align: center;
}
.auth-note strong {
    font-weight: 600;
    color: #101010;
}
.soon-modal {
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}
.soon-banner {
    position: relative;
    height: 170px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25) 0, transparent 40%),
        linear-gradient(135deg, #0b5cff 0%, #0a3fa8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.765rem;
}
.soon-banner .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.soon-icon {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.soon-icon svg {
    width: 38px;
    height: 38px;
}
.soon-icon .fb {
    color: #1877f2;
    font-size: 2.3rem;
}
.soon-icon .emn-icon {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    border-width: 3px;
    border-radius: 6px;
}
.soon-badge {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem 0.722rem;
    border-radius: 6px;
}
.soon-modal .modal-body {
    padding: 1.36rem 1.7rem 1.7rem;
}
.soon-modal h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: .6rem;
}
.soon-modal p {
    color: #556070;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.soon-modal .btn-primary {
    background: var(--auth-blue);
    border-color: var(--auth-blue);
}
.back-link {
    align-self: flex-start;
    font-size: .8rem;
    text-decoration: none;
    color: var(--ek-muted);
    margin-bottom: 1rem;
}
.sms-box {
    border: 1px dashed #93b8ff;
    background: #f0f6ff;
    border-radius: 6px;
    padding: .5rem 0.935rem;
}
.sms-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 0;
}
.sms-row + .sms-row {
    border-top: 1px dashed #c4d8ff;
}
.sms-row span {
    color: var(--ek-muted);
}
.sms-row strong {
    font-size: 1.25rem;
    letter-spacing: .06em;
}
.sms-code {
    font-size: 1.9rem !important;
    letter-spacing: .3em !important;
    color: var(--auth-blue);
}
.instruction {
    font-size: .8rem;
    color: var(--ek-muted);
    margin: .9rem 0 0;
}
.instruction:empty {
    display: none;
}
.waiting {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.25rem;
    background: var(--ek-bg);
    border-radius: 6px;
    padding: 0.637rem 0.85rem;
    font-size: .85rem;
}
.timer {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Profile */
.profile-cover {
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
}
.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-head {
    display: flex;
    align-items: flex-end;
    gap: 1.062rem;
    padding: 0 1.275rem;
    margin-top: -48px;
    flex-wrap: wrap;
}
.avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.profile-head h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .3rem;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: var(--ek-muted);
    padding-bottom: .4rem;
}
.profile-meta i {
    margin-right: .3rem;
}
.profile-meta .verified {
    color: var(--ek-green);
    font-weight: 600;
}
.profile-head form {
    padding-bottom: .5rem;
}
.stat-tile {
    display: flex;
    align-items: center;
    gap: 0.722rem;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.85rem;
}
.stat-tile small {
    display: block;
    color: var(--ek-muted);
    font-size: .72rem;
}
.stat-tile strong {
    font-size: .95rem;
}
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.s-blue { background: #eaf2ff; color: #2563eb; }
.s-green { background: #e9f9ee; color: #03a94d; }
.s-purple { background: #f1ebff; color: #7c3aed; }

@media (max-width: 991.98px) {
    .auth-main {
        margin-left: 0;
        min-height: 0;
    }
}
@media (max-width: 575.98px) {
    .auth-main {
        padding: 1.7rem 1.062rem;
    }
    .auth-main h1 {
        font-size: 1.8rem;
    }
    .social-row {
        grid-template-columns: 1fr;
        gap: .6rem;
    }
    .profile-head {
        padding: 0 .5rem;
    }
}
