/* 
 * Design & Development
 * Credits: Md. Nayem
 * Company: Nogoti Technologies
 * Website: https://nobogoti.com
 * Year: 2026
 * All rights reserved.
 */
@font-face {
  font-family: 'SolaimanLipi';
  src: url("/static/font/SolaimanLipi.ff930beb82e5.woff2") format('woff2'),
       url("/static/font/SolaimanLipi.3526df2db6cb.woff") format('woff'),
       url("/static/font/SolaimanLipi.55a395669acd.ttf") format('truetype');
  unicode-range: U+0980-09FF;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipi', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e53935, #ff7043);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
    color: #333;
}

/* ========== SCROLLING BANGLA WORDS (BACKGROUND ANIMATION) ========== */
.bg-scroll-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            black 6%,
            black 94%,
            transparent 100%
        ),
        linear-gradient(
            to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%
        );
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            black 6%,
            black 94%,
            transparent 100%
        ),
        linear-gradient(
            to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%
        );
    -webkit-mask-composite: source-in;
}

/* common style for scrolling strips */
.scroll-strip {
    position: absolute;
    white-space: nowrap;
    font-weight: 700;
    font-family: 'SolaimanLipi', 'Poppins', sans-serif;
    letter-spacing: 8px;
    color: #fff;
    will-change: transform;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

/* --- Strip 1: Top, left-to-right, fastest, boldest --- */
.strip-ltr {
    top: 10%;
    font-size: clamp(2rem, 5vw, 3.8rem);
    opacity: 0.22;
    animation: scrollLTR 95s linear infinite,
               floatSlow 7s ease-in-out infinite;
}

/* --- Strip 2: Right-to-left, medium speed --- */
.strip-rtl {
    top: 31%;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    opacity: 0.18;
    animation: scrollRTL 140s linear infinite,
               floatMed 9s ease-in-out infinite;
}

/* --- Strip 3: Mid-depth, left-to-right, slow, large, slightly blurred --- */
.strip-ltr-mid {
    top: 49%;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    opacity: 0.09;
    filter: blur(0.8px);
    animation: scrollLTR 180s linear infinite,
               floatWide 11s ease-in-out infinite;
}

/* --- Strip 4: Right-to-left, slow --- */
.strip-rtl-slow {
    top: 67%;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    opacity: 0.14;
    animation: scrollRTL 220s linear infinite,
               floatSlow 8s ease-in-out infinite;
}

/* --- Strip 5: Very bottom, right-to-left, faint anchor strip --- */
.strip-rtl-bottom {
    top: 84%;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    opacity: 0.11;
    animation: scrollRTL 260s linear infinite,
               floatMed 10s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

/* --- Seamless scroll keyframes (content duplicated in HTML = continuous loop) --- */
@keyframes scrollLTR {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

@keyframes scrollRTL {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* --- Subtle vertical bobbing for organic depth --- */
@keyframes floatSlow {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 6px; }
}

@keyframes floatMed {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

@keyframes floatWide {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 12px; }
}

/* responsive adjustments */
@media (max-width: 768px) {
    .scroll-strip {
        letter-spacing: 4px;
    }
    .strip-ltr {
        font-size: 1.4rem;
        opacity: 0.24;
    }
    .strip-rtl {
        font-size: 1.2rem;
        opacity: 0.18;
    }
    .strip-ltr-mid {
        font-size: 1.8rem;
        opacity: 0.10;
        filter: blur(0.5px);
    }
    .strip-rtl-slow {
        font-size: 1rem;
        opacity: 0.15;
    }
    .strip-rtl-bottom {
        font-size: 0.9rem;
        opacity: 0.12;
    }
}

/* ========== LOGIN CONTAINER (MODERN GLASS CARD) ========== */
.login-container {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(2px);
    border-radius: 28px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
    padding: 2rem 2rem 2.2rem;
    width: 90%;
    max-width: 420px;
    text-align: center;
    animation: cardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

/* Brand Logo */
.brand-logo {
    margin-bottom: 20px;
}

.brand-logo img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: filter 0.3s;
}

/* Headings */
.login-box h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, #c62828, #e65100);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.login-box .subtitle {
    font-size: 1.2rem;
    color: #5a5a5a;
    margin-bottom: 28px;
    font-weight: 400;
    display: inline-block;
    padding-bottom: 5px;
}

/* Form Styling */
.login-form .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.login-form .form-group label {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e2f;
    letter-spacing: 0.3px;
}

.login-form .form-group label i {
    margin-right: 6px;
    color: #e53935;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #ececec;
    border-radius: 16px;
    font-size: 1.2rem;
    font-family: 'SolaimanLipi', 'Poppins', sans-serif;
    transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fefefe;
}

input:-webkit-autofill::first-line {
  font-size: 1.2rem;
}

.login-form .form-group input:focus {
    border-color: #e53935;
    outline: 2px solid #e53935;
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
    background-color: #fff;
    transform: scale(1.01);
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(95deg, #e53935, #ff7043);
    color: white;
    border: none;
    border-radius: 40px;
    font-family: 'SolaimanLipi', 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
    box-shadow: 0 8px 18px rgba(229, 57, 53, 0.3);
    margin-top: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button i {
    font-size: 1.3rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-button:hover {
    background: linear-gradient(95deg, #ff7043, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(229, 57, 53, 0.4);
}

.login-button:hover i {
    transform: translateX(4px);
}

.login-button:active {
    transform: scale(0.97);
    box-shadow: 0 4px 8px rgba(229, 57, 53, 0.25);
    transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3-beat card entrance */
@keyframes cardEntrance {
    0%   { opacity: 0; transform: translateY(24px) scale(0.96); }
    50%  { opacity: 0.8; transform: translateY(-4px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* small additional touch */
.extra-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Password toggle styling */
.password-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #e53935;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.88);
}

/* ========== Accessibility & States ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-strip {
        animation: none !important;
        opacity: 0.12;
    }
    .login-container {
        animation: fadeInReduced 0.15s ease;
    }
}

@keyframes fadeInReduced {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.form-group .error-feedback {
    color: #c62828;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group input.input-error {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15) !important;
}
