﻿html, body, form { width: 100%; min-height: 100%; margin: 0; }
* { box-sizing: border-box; }
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #031d3c;
    color: #0c2340;
    overflow-x: hidden;
}
.login-shell {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 54% 46%;
    overflow: hidden;
    background: linear-gradient(105deg, #031a37 0%, #062e5d 55%, #051d3d 100%);
}
.brand-panel {
    position: relative;
    min-height: calc(100vh - 72px);
    padding: 42px 5vw 34px 3vw;
    color: #fff;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(1,18,43,.16), rgba(1,21,50,.26)),
        url('../images/taikisha-tech-bg.gif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(1,13,34,.12), rgba(1,22,52,.10)),
        linear-gradient(0deg, rgba(0,17,42,.50), transparent 45%);
}
.tech-grid { display: none; }
.brand-content { position: relative; z-index: 2; max-width: 720px; }
.brand-logo {
    width: min(330px, 70%);
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}
.company-name {
    width: fit-content;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.45);
    font-size: 14px;
    letter-spacing: .4px;
}
.hero-copy { margin-top: 72px; }
.welcome-small { font-size: clamp(28px, 2.2vw, 38px); font-weight: 700; }
.hero-copy h1 {
    margin: 8px 0 18px;
    font-size: clamp(46px, 4.2vw, 70px);
    line-height: 1.04;
    font-weight: 700;
    text-shadow: 0 3px 22px rgba(0,0,0,.28);
}
.hero-copy h1 span { color: #1688ff; }
.hero-copy h2 { margin: 0; font-size: 25px; font-weight: 400; }
.hero-copy h2 b { color: #ff7b22; }
.hero-line { width: 110px; height: 2px; margin: 22px 0; background: #1b85ff; box-shadow: 0 0 12px #1b85ff; }
.hero-copy p { max-width: 610px; margin: 0; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.94); }
.feature-row { display: flex; gap: 28px; margin-top: 34px; }
.feature-item { width: 92px; text-align: center; color: #fff; font-size: 14px; line-height: 1.25; }
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #168cff; border-radius: 13px;
    background: rgba(0, 69, 145, .42);
    color: #62b8ff; font-size: 28px;
    box-shadow: inset 0 0 22px rgba(0, 125, 255, .18), 0 0 18px rgba(0,125,255,.12);
}
.form-panel {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 5vw 42px 2.5vw;
    background: linear-gradient(90deg, rgba(2,25,54,.10), rgba(2,20,44,.55));
}
.login-card {
    width: min(520px, 100%);
    padding: 46px 48px 38px;
    background: rgba(255,255,255,.985);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 14px;
    box-shadow: 0 28px 76px rgba(0, 8, 30, .44);
}
.login-title-row { display: flex; align-items: center; gap: 18px; }
.lock-circle {
    width: 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2da2ff, #0875df);
    color: #fff;
    font-size: 31px;
    box-shadow: 0 10px 24px rgba(8,117,223,.25);
}
.login-title-row h3 { margin: 0; color: #10284a; font-size: 28px; font-weight: 700; }
.title-separator { height: 1px; background: #dbe2ea; margin: 22px 0 24px; }
.field-row {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.field-icon { color: #324f70; font-size: 20px; text-align: center; }
.modern-control {
    width: 100%; height: 47px !important;
    padding: 0 15px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #202a35 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}
.modern-control:focus { border-color: #1688ff !important; box-shadow: 0 0 0 3px rgba(22,136,255,.12) !important; }
.password-row { grid-template-columns: 30px 1fr; }
.password-row .modern-control { padding-right: 46px !important; }
.eye-button {
    position: absolute; right: 10px; top: 7px;
    width: 34px; height: 32px;
    border: 0; background: transparent;
    color: #607894; font-size: 18px; cursor: pointer;
}
.warning-message { display: block; color: #d63031; margin: -7px 0 11px 42px; font-size: 13px; }
.remember-row { margin: 8px 0 23px 42px; color: #182433; font-size: 15px; }
.login-submit {
    width: calc(100% - 42px); height: 48px; margin-left: 42px;
    border: 0; border-radius: 5px;
    background: linear-gradient(90deg, #0754c9, #0b64dc);
    color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .3px;
    box-shadow: 0 9px 20px rgba(7,84,201,.22);
}
.login-submit:hover, .login-submit:focus { color: #fff; background: linear-gradient(90deg, #0648ac, #0959c4); }
.login-links { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 24px 0 24px 42px; }
.forgot-link { color: #0860c8 !important; text-decoration: none !important; }
.visitor-button {
    padding: 8px 17px;
    border: 2px solid #ff7900;
    border-radius: 22px;
    color: #ef6500 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.support-note { display: flex; gap: 13px; margin-left: 42px; padding-top: 22px; border-top: 1px solid #dbe2ea; color: #1e2e42; font-size: 14px; }
.support-note i { color: #0563d7; font-size: 25px; }
.support-note b { color: #055ac2; }
.notification-card {
    position: fixed; right: 22px; bottom: 90px; z-index: 20;
    width: 190px; overflow: hidden; border-radius: 3px;
    box-shadow: 0 10px 28px rgba(0,0,0,.30); background: #fff;
}
.notification-title { padding: 17px 15px; background: #4d4d4d; color: #fff; font-size: 21px; }
.notification-body { padding: 19px 15px; background: #e6e6e6; color: #444; }
.notification-close { position: absolute; right: 9px; top: 6px; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.global-footer {
    position: relative;
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a315b;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.25);
    font-size: 14px;
}
.footer-center { text-align: center; }
.footer-right { position: absolute; right: 32px; }
.footer-right span { margin: 0 16px; opacity: .7; }
@media (prefers-reduced-motion: reduce) {
    .brand-panel { background-image: linear-gradient(90deg, rgba(1,18,43,.16), rgba(1,21,50,.26)), url('../images/taikisha-tech-bg.jpg'); }
}
@media (max-width: 1120px) {
    .login-shell { grid-template-columns: 48% 52%; }
    .feature-row { gap: 12px; flex-wrap: wrap; }
    .form-panel { padding-right: 3vw; }
}
@media (max-width: 860px) {
    .login-shell { display: block; padding-bottom: 104px; min-height: 100vh; }
    .brand-panel { min-height: 430px; padding: 24px 24px 38px; background-position: 38% center; }
    .hero-copy { margin-top: 36px; }
    .feature-row { display: none; }
    .form-panel { padding: 24px 14px 40px; background: #05264c; }
    .login-card { padding: 32px 24px; }
    .notification-card { display: none; }
    .global-footer { min-height: 96px; padding: 15px; flex-direction: column; gap: 8px; }
    .footer-right { position: static; text-align: center; }
}
@media (max-width: 520px) {
    .hero-copy h1 { font-size: 40px; }
    .welcome-small { font-size: 27px; }
    .login-title-row h3 { font-size: 22px; }
    .login-links { align-items: stretch; flex-direction: column; }
    .visitor-button { text-align: center; }
}

/* Clean animated-background correction */
.brand-panel {
    isolation: isolate;
    background-color: #031d3c;
}
.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(1,14,36,.10), rgba(1,23,55,.24));
    pointer-events: none;
}
.brand-content { z-index: 3; }
@media (min-width: 861px) {
    .brand-panel { background-position: 48% center; }
}

/* Final approved Taikisha India logo */
.brand-logo {
    width: min(470px, 84%);
    max-height: 112px;
    object-fit: contain;
    object-position: left center;
    filter: none;
    display: block;
}
.visitor-button::after {
    content: "  ›";
    font-weight: 700;
}
@media (max-width: 860px) {
    .brand-logo { width: min(410px, 88%); max-height: 96px; }
}

/* Taikisha basic help chatbot */
.tei-chat-launcher {
    position: fixed;
    right: 26px;
    bottom: 92px;
    z-index: 10020;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #168cff, #0054c7);
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 48, 112, .35);
    cursor: pointer;
    font-size: 24px;
}
.tei-chat-launcher:hover { transform: translateY(-2px); }
.tei-chat-panel {
    position: fixed;
    right: 26px;
    bottom: 160px;
    z-index: 10019;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 510px;
    max-height: calc(100vh - 190px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 24, 64, .38);
    border: 1px solid rgba(0, 84, 180, .18);
}
.tei-chat-panel.is-open { display: flex; }
.tei-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #073e78, #086fca);
    color: #fff;
}
.tei-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    font-size: 20px;
}
.tei-chat-title { flex: 1; }
.tei-chat-title strong { display: block; font-size: 16px; }
.tei-chat-title small { display: block; opacity: .84; margin-top: 2px; }
.tei-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}
.tei-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f8fc;
}
.tei-chat-message {
    max-width: 86%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.tei-chat-message.bot {
    background: #fff;
    color: #18344e;
    border: 1px solid #dce7f2;
    border-bottom-left-radius: 4px;
}
.tei-chat-message.user {
    margin-left: auto;
    background: #086bd1;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.tei-chat-quick {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    padding: 10px 14px 0;
    background: #fff;
}
.tei-chat-quick button {
    border: 1px solid #bad2eb;
    border-radius: 999px;
    background: #f8fbff;
    color: #0757a4;
    padding: 6px 9px;
    font-size: 11px;
    cursor: pointer;
}
.tei-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    background: #fff;
}
.tei-chat-input-row input {
    min-width: 0;
    flex: 1;
    border: 1px solid #cddbea;
    border-radius: 10px;
    padding: 10px 11px;
    outline: none;
}
.tei-chat-input-row input:focus { border-color: #1479db; box-shadow: 0 0 0 3px rgba(20,121,219,.12); }
.tei-chat-send {
    width: 42px;
    border: 0;
    border-radius: 10px;
    background: #086bd1;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 860px) {
    .tei-chat-launcher { right: 16px; bottom: 112px; }
    .tei-chat-panel { right: 15px; bottom: 180px; height: 470px; }
}

/* Sales chatbot contact capture */
.tei-chat-lead { padding: 18px; background: #fff; }
.tei-chat-lead p { margin: 0 0 14px; color: #18364d; font-weight: 600; }
.tei-chat-lead label { display: block; margin: 10px 0 5px; color: #304b63; font-size: 12px; font-weight: 600; }
.tei-chat-lead input { width: 100%; height: 40px; padding: 8px 11px; border: 1px solid #cfdbea; border-radius: 7px; box-sizing: border-box; outline: none; }
.tei-chat-lead input:focus { border-color: #176ed0; box-shadow: 0 0 0 3px rgba(23,110,208,.12); }
.tei-chat-start { width: 100%; margin-top: 13px; padding: 10px 14px; border: 0; border-radius: 7px; background: #075cc5; color: #fff; font-weight: 700; cursor: pointer; }
.tei-chat-start:disabled { opacity: .65; cursor: wait; }
.tei-chat-lead small { display: block; margin-top: 9px; color: #6c7e90; font-size: 10px; line-height: 1.35; }
.tei-chat-lead-error { min-height: 17px; margin-top: 7px; color: #c62828; font-size: 11px; }
.tei-chat-message.system { background: #fff4df; color: #7d5100; border: 1px solid #f2d49a; }
