/* /home/a1appbuilders/public_html/addons/ticketsystem/assets/css/login.css */

:root {
    --indigo-deep:  #0f0c2e;
    --indigo-dark:  #1e1b4b;
    --indigo-mid:   #312e81;
    --indigo-soft:  #6366f1;
    --indigo-light: #a5b4fc;
    --cyan:         #06b6d4;
    --cyan-light:   #67e8f9;
    --yellow:       #f59e0b;
    --green:        #22c55e;
    --sky:          #38bdf8;
    --white:        #ffffff;
    --text-light:   #c7d2fe;
    --text-muted:   #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: linear-gradient(135deg, var(--indigo-deep) 0%, #1a1060 50%, #0c1a3a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow orbs */
body::before {
    content: '';
    position: fixed;
    top: -120px; right: -120px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -100px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -.5px;
    z-index: 1;
    position: relative;
    text-shadow: 0 0 40px rgba(99,102,241,.4);
}
h1 span { color: var(--cyan); }

.tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    z-index: 1;
    position: relative;
}

/* ── Container ── */
.login-container {
    background: rgba(30, 27, 75, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(99,102,241,.1);
    overflow: hidden;
    max-width: 820px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

/* ── Banner (left) ── */
.login-banner {
    background: linear-gradient(160deg, #1e1b4b 0%, #0f0c2e 60%, #0c1a3a 100%);
    padding: 40px 32px;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(99,102,241,.2);
    position: relative;
    overflow: hidden;
}
.login-banner::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
    pointer-events: none;
}

.banner-icon {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(99,102,241,.5));
}
.login-banner h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
    letter-spacing: -.3px;
}
.login-banner p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.banner-features { list-style: none; text-align: left; width: 100%; }
.banner-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.banner-features li:last-child { border-bottom: none; }
.banner-features .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-cyan   { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.dot-green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-sky    { background: var(--sky); box-shadow: 0 0 6px var(--sky); }
.dot-indigo { background: var(--indigo-soft); box-shadow: 0 0 6px var(--indigo-soft); }

/* ── Form (right) ── */
.login-form {
    padding: 36px 36px;
    background: rgba(15, 12, 46, 0.6);
}

.login-tabs {
    display: flex;
    margin-bottom: 22px;
    background: rgba(99,102,241,.08);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}
.login-tab {
    flex: 1;
    padding: 9px 6px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 7px;
    transition: all .2s;
}
.login-tab:hover { color: var(--text-light); }
.login-tab.active {
    background: var(--indigo-soft);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(99,102,241,.4);
}
.login-tab i { margin-right: 5px; }

/* ── Alerts ── */
.alert {
    padding: 11px 14px;
    border-radius: 9px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideIn .25s ease;
}
.alert i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-danger  { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.alert-success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.alert-info    { background: rgba(6,182,212,.12); color: var(--cyan-light); border: 1px solid rgba(6,182,212,.25); }
.close-btn { background: none; border: none; color: inherit; cursor: pointer; font-size: 18px; margin-left: auto; padding: 0; flex-shrink: 0; }

/* ── Form groups ── */
.form-group { margin-bottom: 14px; position: relative; }
.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.form-label i { margin-right: 5px; color: var(--cyan); }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 9px;
    border: 1px solid rgba(99,102,241,.3);
    background: rgba(15,12,46,.8);
    color: var(--white);
    font-size: 14px;
    transition: all .2s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--indigo-soft);
    box-shadow: 0 0 0 3px rgba(99,102,241,.18);
    background: rgba(15,12,46,.95);
}
.form-control::placeholder { color: rgba(148,163,184,.5); }

/* ── Password group ── */
.password-group { position: relative; }
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    transition: color .2s;
}
.toggle-password:hover { color: var(--cyan); }

/* ── Forgot / Register links ── */
.forgot-password { text-align: right; margin-bottom: 14px; }
.forgot-link {
    color: var(--cyan-light);
    text-decoration: none;
    font-size: 12px;
    transition: color .2s;
}
.forgot-link:hover { color: var(--cyan); text-decoration: underline; }
.forgot-link i { margin-right: 3px; }

/* ── Login button ── */
.btn-login {
    background: linear-gradient(135deg, var(--indigo-soft) 0%, #8b5cf6 100%);
    color: var(--white);
    padding: 13px;
    border: none;
    border-radius: 9px;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    margin-bottom: 12px;
    letter-spacing: .02em;
    box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,.45);
}
.btn-login:active { transform: translateY(0); }
.btn-login i { margin-right: 6px; }

/* ── Register link ── */
.register-link {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(99,102,241,.15);
    font-size: 13px;
    color: var(--text-muted);
}
.register-link a {
    color: var(--cyan-light);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.register-link a:hover { color: var(--cyan); text-decoration: underline; }

/* ── Back home ── */
.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    background: rgba(99,102,241,.2);
    border: 1px solid rgba(99,102,241,.3);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.back-home:hover { background: rgba(99,102,241,.35); color: var(--white); }

/* ── Animations ── */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 680px) {
    h1 { font-size: 30px; }
    .login-wrapper { grid-template-columns: 1fr; }
    .login-banner { padding: 32px 24px; min-height: auto; border-right: none; border-bottom: 1px solid rgba(99,102,241,.2); }
    .login-form { padding: 28px 24px; }
    .banner-features { display: none; }
}
@media (max-width: 420px) {
    h1 { font-size: 24px; }
    .login-form { padding: 22px 18px; }
    .login-tab { font-size: 11px; padding: 8px 4px; }
    .back-home { font-size: 12px; padding: 7px 12px; top: 10px; left: 10px; }
}
