/** Split-screen auth layout (views/layouts/main-login.php) */

body.auth-split {
    --os-primary: #234b5b;
    --os-primary-hover: #1a3a47;
    --os-accent: #2bae8c;
    --os-text: #1b2430;
    --os-muted: #6b7785;
    --os-border: #e6eaee;

    margin: 0;
    background: #fff;
    color: var(--os-text);
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-split__wrap {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    min-height: 100vh;
}

/* Left panel */

.auth-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

.auth-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 40px;
}

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

.auth-help {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    line-height: 1.35;
}

.auth-help > i {
    color: var(--os-accent);
    font-size: 15px;
}

.auth-help__title {
    display: block;
    color: var(--os-text);
    font-size: 13px;
    font-weight: 500;
}

.auth-help__link,
.auth-help__link:hover,
.auth-help__link:focus {
    color: var(--os-muted);
    font-size: 12px;
}

.auth-help__link:hover {
    color: var(--os-accent);
}

.auth-panel__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-panel__content {
    width: 100%;
    max-width: 384px;
}

.auth-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;
    border-top: 1px solid var(--os-border);
    color: var(--os-muted);
    font-size: 11px;
}

.auth-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--os-accent);
    vertical-align: middle;
}

/* Neutralise AdminLTE box styling for the inner views */

.auth-panel__content .login-box-body {
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
}

.auth-panel__content .login-box-msg {
    padding: 0 0 20px;
    text-align: left;
}

.auth-panel__content h1,
.auth-panel__content h2,
.auth-panel__content h3 {
    font-family: inherit;
    font-weight: 700;
    color: var(--os-text);
}

.auth-panel__content .login-box-msg p {
    color: var(--os-muted);
}

.auth-panel__content a {
    color: var(--os-accent);
    font-weight: 500;
}

.auth-panel__content label {
    font-weight: 500;
    font-size: 13px;
}

.auth-panel__content .form-control {
    height: 32px;
    border: 1px solid var(--os-border);
    border-radius: 8px;
    box-shadow: none;
    font-size: 13px;
}

.auth-panel__content .form-control:focus {
    border-color: var(--os-accent);
}

.auth-panel__content .btn-primary {
    background: var(--os-primary);
    border-color: var(--os-primary);
    font-weight: 600;
}

.auth-panel__content .btn-primary:hover,
.auth-panel__content .btn-primary:focus,
.auth-panel__content .btn-primary:active {
    background: var(--os-primary-hover);
    border-color: var(--os-primary-hover);
}

/* Right hero carousel */

.auth-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--os-primary);
}

.auth-hero .carousel-inner,
.auth-hero .carousel-inner > .item {
    height: 100%;
}

.auth-hero .carousel-inner {
    position: absolute;
    inset: 0;
}

.auth-hero .item {
    background-position: center;
    background-size: cover;
}

.auth-hero .item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 50, 60, 0) 45%, rgba(20, 50, 60, .85) 100%);
}

/* Crossfade instead of Bootstrap 3's slide */
.auth-hero.carousel-fade .carousel-inner > .item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    left: 0;
    transform: none;
    transition: opacity .8s ease-in-out;
}

.auth-hero.carousel-fade .carousel-inner > .active,
.auth-hero.carousel-fade .carousel-inner > .next.left,
.auth-hero.carousel-fade .carousel-inner > .prev.right {
    opacity: 1;
    left: 0;
    transform: none;
}

.auth-hero.carousel-fade .carousel-inner > .active.left,
.auth-hero.carousel-fade .carousel-inner > .active.right {
    opacity: 0;
    left: 0;
    transform: none;
}

.auth-hero__caption {
    position: absolute;
    z-index: 2;
    left: 56px;
    right: 56px;
    bottom: 48px;
    color: #fff;
}

.auth-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 500;
}

.auth-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--os-accent);
}

.auth-hero__title {
    margin: 16px 0 12px;
    font-family: inherit;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.5px;
    color: #fff;
}

.auth-hero__text {
    max-width: 460px;
    margin: 0 0 32px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.auth-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
}

.auth-hero__features i {
    margin-right: 6px;
    color: var(--os-accent);
}

.auth-hero .carousel-indicators {
    z-index: 3;
    left: 50%;
    right: auto;
    bottom: 14px;
    width: auto;
    margin: 0;
    transform: translateX(-50%);
}

.auth-hero .carousel-indicators li,
.auth-hero .carousel-indicators .active {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    border: 0;
    background: rgba(255, 255, 255, .45);
}

.auth-hero .carousel-indicators .active {
    width: 20px;
    background: #fff;
}

/* Responsive */

@media (max-width: 991px) {
    .auth-split__wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-hero {
        display: none;
    }
}

@media (max-width: 575px) {
    .auth-panel__header,
    .auth-panel__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-panel__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
