* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol !important;
    overflow: hidden;
}

.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 7rem;
    padding: 0 2rem;
}

.img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.login-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.img img {
    width: 500px;
}

form {
    width: 360px;
}

.login-content img {
    height: 100px;
}

.login-content h2 {
    margin: 15px 0;
    color: #333;
    font-size: 2.6rem;
}

.login-content .input-div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 20px 0;
    padding: 5px 0;
    border-bottom: 2px solid #d9d9d9;
}

.login-content .input-div.one {
    margin-top: 0;
}

.i {
    color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.i i {
    transition: .3s;
}

.input-div > div {
    position: relative;
    height: 35px;
}

.input-div > div > h5 {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: .3s;
}

.input-div:before, .input-div:after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #38d39f;
    transition: .4s;
}

.input-div:before {
    right: 50%;
}

.input-div:after {
    left: 50%;
}

.input-div.focus:before, .input-div.focus:after {
    width: 50%;
}

.input-div.focus > div > h5 {
    top: -5px;
    font-size: 15px;
}

.input-div.focus > .i > i {
    color: #38d39f;
}

.input-div > div > input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0.5rem 0.7rem;
    font-size: 1.2rem;
    color: #555;
    font-family: 'poppins', sans-serif;
}

.input-div.pass {
    margin-bottom: 4px;
}

a {
    display: block;
    text-decoration: none;
    color: #999;
    font-size: 0.9rem;
    transition: .3s;
}

a:hover {
    color: #38d39f;
}

.btn {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
    border: none;
    background-image: linear-gradient(to right, #32be8f, #38d39f, #32be8f);
    background-size: 200%;
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin: 1rem 0;
    cursor: pointer;
    transition: .5s;
}

.btn:hover {
    background-position: right;
}


@media screen and (max-width: 1050px) {
    .container {
        grid-gap: 5rem;
    }
}

@media screen and (max-width: 1000px) {
    form {
        width: 290px;
    }

    .login-content h2 {
        font-size: 2.4rem;
        margin: 8px 0;
    }

    .img img {
        width: 400px;
    }
}

@media screen and (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .img {
        display: none;
    }

    .wave {
        display: none;
    }

    .login-content {
        justify-content: center;
    }
}

.form-floating .form-control {
    border-bottom: 2px solid #d9d9d9;
    border-top: none;
    border-right: none;
    border-left: none;
    border-radius: 0;
}

.form-floating .form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-bottom-color: #38d39f;
    border-top: none;
    border-right: none;
    border-left: none;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

.form-floating .form-control:not(:placeholder-shown) {
    border-bottom-color: #38d39f; /* Focus rengi */
    border-bottom-width: 2px;
}

/* ===== AUTH LAYOUT v2.0 ===== */
body.auth-body {
    overflow: auto;
}

.auth-layout-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.auth-video-panel {
    flex: 1 1 0%;
    position: relative;
    overflow: hidden;
    display: none;
    background: #0a0f1e;
}

@media (min-width: 992px) {
    .auth-video-panel {
        display: block;
    }
    .auth-form-panel {
        flex: 0 0 480px;
        max-width: 480px;
    }
}

.auth-video-panel video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: 0.7;
}

.auth-video-panel .auth-carousel .carousel-item {
    position: relative;
}

.auth-video-panel .auth-carousel,
.auth-video-panel .auth-carousel .carousel-inner,
.auth-video-panel .auth-carousel .carousel-item {
    height: 100%;
}

.auth-video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(10,15,30,0.7) 0%, rgba(10,15,30,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    z-index: 10;
    overflow: hidden;
}

.auth-video-overlay .auth-branding-logo {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: auto;
    padding-top: 2rem;
}

.auth-video-overlay .auth-tagline {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.auth-video-overlay .auth-tagline-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.auth-form-panel {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #fff;
    min-height: 100vh;
}

.auth-form-panel .auth-form-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.auth-form-panel .auth-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 0.25rem;
}

.auth-form-panel .auth-form-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-form-panel .btn-auth-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: #fff;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: opacity 0.2s;
}

.auth-form-panel .btn-auth-primary:hover {
    opacity: 0.9;
    color: #fff;
}

.auth-form-panel .auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.auth-form-panel .auth-divider::before,
.auth-form-panel .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-form-panel .auth-link {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.auth-form-panel .auth-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.auth-form-panel .auth-link a:hover {
    text-decoration: underline;
}

.auth-form-panel .form-floating label {
    color: #6b7280;
}

.auth-form-panel .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ===== AUTH INTRO ANIMATION v3.2 ===== */

/* Mobile: just hide with opacity (video panel is hidden anyway) */
.auth-form-panel {
    opacity: 0;
}

/* Desktop: collapse to zero width so video truly fills the screen */
@media (min-width: 992px) {
    .auth-form-panel {
        flex: 0 0 0px !important;
        max-width: 0 !important;
        min-width: 0;
        overflow: hidden;
        padding: 0;
    }
}

/* JS adds .auth-visible after 1 second */
.auth-form-panel.auth-visible {
    opacity: 1;
    transition: opacity 0.6s ease 0.15s;
}

@media (min-width: 992px) {
    .auth-form-panel.auth-visible {
        flex: 0 0 480px !important;
        max-width: 480px !important;
        padding: 3rem 2.5rem;
        transition: flex-basis 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    max-width  0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity    0.6s ease 0.3s;
    }
}

/* ── Intro Splash overlay ─────────────────────────────────────── */
.auth-intro-splash {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.7s ease;
}

html.auth-revealed .auth-intro-splash {
    opacity: 0;
}

.auth-intro-splash .splash-logo {
    max-height: 78px;
    max-width:  260px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(59,130,246,.5));
    animation: auth-float 3s ease-in-out infinite;
    margin-bottom: 1.25rem;
}

.auth-intro-splash .splash-brand {
    color: rgba(255,255,255,.65);
    font-size: .72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 2rem;
}

.auth-intro-splash .splash-dots {
    display: flex;
    gap: 9px;
}
.auth-intro-splash .splash-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    animation: auth-dot 1.5s ease-in-out infinite;
}
.auth-intro-splash .splash-dots span:nth-child(2) { animation-delay: .25s; }
.auth-intro-splash .splash-dots span:nth-child(3) { animation-delay: .5s;  }

/* ── Progress bar ─────────────────────────────────────────────── */
.auth-intro-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #818cf8, #60a5fa);
    z-index: 35;
    border-radius: 0 2px 2px 0;
    animation: auth-progress 1.05s cubic-bezier(.4,0,.6,1) forwards;
}
html.auth-revealed .auth-intro-progress {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes auth-float {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-12px); }
}
@keyframes auth-dot {
    0%, 70%, 100% { transform: scale(1);   opacity: .35; }
    35%           { transform: scale(1.6); opacity: 1;   background: #60a5fa; }
}
@keyframes auth-progress {
    from { width: 0;    }
    to   { width: 100%; }
}
