
/* =========================================================
   OneStepTripura Login Page
   File: public_html/assets/css/ost-login.css
   ========================================================= */

:root {
    --login-primary: #08765c;
    --login-primary-dark: #075c4d;
    --login-primary-light: #0b9273;
    --login-background: #f2f7f5;
    --login-text: #172033;
    --login-muted: #64748b;
    --login-border: #e1eae5;
    --login-white: #ffffff;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.ost-login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--login-text);
    background: var(--login-background);
}

a {
    text-decoration: none;
}

/* TOP STRIP */

.ost-login-top-strip {
    background: linear-gradient(
        90deg,
        var(--login-primary-dark),
        var(--login-primary-light)
    );
    color: var(--login-white);
    padding: 12px 5%;
    font-size: 13px;
}

.ost-login-top-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.ost-login-top-strip a {
    color: var(--login-white);
    white-space: nowrap;
}

.ost-login-top-strip a:hover {
    opacity: 0.85;
}

/* BRAND HEADER */

.ost-login-brand-bar {
    background: var(--login-white);
    padding: 18px 5%;
    border-bottom: 1px solid var(--login-border);
}

.ost-login-brand {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.ost-login-logo {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    object-fit: contain;
}

.ost-login-brand-name {
    margin: 0;
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.ost-login-brand-one {
    color: #111827;
}

.ost-login-brand-tripura {
    color: #ef4444;
}

.ost-login-brand-dotcom {
    color: #07865f;
}

.ost-login-brand-tagline {
    color: var(--login-muted);
    font-size: 12px;
    margin-top: 5px;
}

/* MAIN BACKGROUND */

.ost-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
    background:
        radial-gradient(
            circle at 10% 15%,
            #d8eee5 0,
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            #dceee8 0,
            transparent 32%
        ),
        var(--login-background);
}

/* LOGIN LAYOUT */

.ost-login-layout {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    background: var(--login-white);
    border: 1px solid var(--login-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(15, 65, 50, 0.11);
}

/* WELCOME PANEL */

.ost-login-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 42px;
    color: var(--login-white);
    background: linear-gradient(
        145deg,
        var(--login-primary-dark),
        var(--login-primary-light)
    );
}

.ost-login-welcome::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: -100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.035),
        0 0 0 70px rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.ost-login-welcome-icon {
    font-size: 42px;
    margin-bottom: 24px;
}

.ost-login-welcome h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 17px;
    font-size: 33px;
    font-weight: 800;
    line-height: 1.3;
}

.ost-login-welcome p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #e0f2eb;
    font-size: 14px;
    line-height: 1.8;
}

.ost-login-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 15px;
    margin-top: 30px;
    color: #f0fdf4;
    font-size: 13px;
}

.ost-login-features i {
    margin-right: 10px;
}

/* LOGIN FORM PANEL */

.ost-login-panel {
    padding: 43px 36px;
    min-width: 0;
}

.ost-login-heading-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #e2f4ec;
    color: var(--login-primary);
    font-size: 24px;
}

.ost-login-panel h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
}

.ost-login-subtitle {
    margin: 0 0 28px;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* FORM ELEMENTS */

.ost-login-form .form-group {
    margin-bottom: 20px;
}

.ost-login-form label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.ost-login-input-wrap {
    position: relative;
}

.ost-login-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #84938e;
    pointer-events: none;
}

.ost-login-input {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 11px 42px;
    border: 1px solid #d8e3de;
    border-radius: 9px;
    outline: none;
    background: var(--login-white);
    color: var(--login-text);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ost-login-input::placeholder {
    color: #94a3b8;
}

.ost-login-input:focus {
    border-color: var(--login-primary-light);
    box-shadow: 0 0 0 3px rgba(11, 146, 115, 0.12);
}

.ost-login-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* PASSWORD VISIBILITY BUTTON */

.ost-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--login-muted);
    cursor: pointer;
}

.ost-login-password-toggle:hover {
    color: var(--login-primary);
}

.ost-login-password-toggle:focus-visible {
    outline: 2px solid var(--login-primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* LOGIN BUTTON */

.ost-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    margin-top: 9px;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(
        90deg,
        var(--login-primary),
        var(--login-primary-light)
    );
    color: var(--login-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(8, 118, 92, 0.17);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ost-login-button:hover {
    background: var(--login-primary-dark);
    box-shadow: 0 8px 18px rgba(8, 118, 92, 0.22);
}

.ost-login-button:active {
    transform: translateY(1px);
}

.ost-login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* MESSAGE / ERROR / SUCCESS */

.ost-login-message {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ost-login-message.show {
    display: block;
}

.ost-login-message.error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.ost-login-message.success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ost-login-message.info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* SECURITY NOTE */

.ost-login-note {
    margin-top: 23px;
    color: var(--login-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.ost-login-note i {
    margin-right: 5px;
}

/* FOOTER */

.ost-login-footer {
    padding: 18px;
    background: #fff;
    color: var(--login-muted);
    border-top: 1px solid var(--login-border);
    font-size: 12px;
    text-align: center;
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px) {
    .ost-login-layout {
        max-width: 760px;
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    .ost-login-welcome {
        padding: 38px 28px;
    }

    .ost-login-welcome h1 {
        font-size: 29px;
    }

    .ost-login-panel {
        padding: 36px 27px;
    }
}

@media (max-width: 700px) {
    .ost-login-main {
        padding: 30px 16px;
    }

    .ost-login-layout {
        max-width: 460px;
        grid-template-columns: minmax(0, 1fr);
    }

    .ost-login-welcome {
        padding: 28px;
    }

    .ost-login-welcome-icon {
        margin-bottom: 12px;
        font-size: 32px;
    }

    .ost-login-welcome h1 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .ost-login-welcome p {
        font-size: 13px;
    }

    .ost-login-features {
        display: none;
    }

    .ost-login-panel {
        padding: 30px 25px;
    }

    .ost-login-brand-bar {
        padding: 15px 20px;
    }

    .ost-login-logo {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 420px) {
    .ost-login-top-strip {
        padding: 10px 14px;
        font-size: 11px;
    }

    .ost-login-top-strip-inner {
        align-items: flex-start;
    }

    .ost-login-brand-name {
        font-size: 21px;
    }

    .ost-login-brand-tagline {
        font-size: 11px;
    }

    .ost-login-panel {
        padding: 25px 20px;
    }

    .ost-login-panel h2 {
        font-size: 23px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
