/* --- Global Variables for Theming --- */
/* Think of these like color names in a paint bucket. */
:root {
    /* Dark Mode Colors */
    --bg-body: #020f12;
    --bg-left-panel: #06403d;
    --bg-right-panel: #020617;

    /* Left side circle shapes */
    --shape-1: #08524e;
    --shape-2: #0a6660;
    --shape-3: #0c7a73;
    --shape-4: #0d8c85;
    --shape-bl: #03211f;

    /* Login Card Colors */
    --card-bg: #0f172a;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.5);

    /* Text Colors */
    --left-text: #ffffff;
    --left-text-muted: rgba(255, 255, 255, 0.8);
    --right-text: #f8fafc;
    --right-text-muted: #94a3b8;

    /* Inputs */
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-border: rgba(255, 255, 255, 0.1);

    --accent-teal: #1dc4b1;
}

/* Light Mode Colors */
body.light-mode {
    --bg-body: #f1f5f9;
    --bg-left-panel: #14b8a6;
    --bg-right-panel: #f1f5f9;

    --shape-1: #0d9488;
    --shape-2: #0f766e;
    --shape-3: #115e59;
    --shape-4: #134e4a;
    --shape-bl: #134e4a;

    --card-bg: #ffffff;
    --card-border: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);

    --right-text: #0f172a;
    --right-text-muted: #64748b;

    --input-bg: #f8fafc;
    --input-border: #cbd5e1;

    --accent-teal: #14b8a6;
}

/* --- Global Reset --- */
/* This cleans up the page so everything is smooth to start */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-container {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
}

/* =====================================================
   THEME TOGGLE – POSITIONED AS PER YELLOW MARK
   ===================================================== */

.theme-toggle {
    position: absolute;

    /* Positioned relative to right-panel */
    top: 30px;
    left: 30px;

    z-index: 50;

    width: 46px;
    height: 46px;

    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);

    color: var(--right-text);
    font-size: 18px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    box-shadow: 0 6px 18px var(--card-shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.08);
    color: var(--accent-teal);
}

/* --- LEFT PANEL --- */
.left-panel {
    width: 60%;
    position: relative;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-left-panel);
    overflow: hidden;
    transition: background-color 0.4s ease;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    transition: background-color 0.4s ease;
}

.shape-1 {
    width: 120vmax;
    height: 120vmax;
    background-color: var(--shape-1);
    top: -60vmax;
    right: -40vmax;
}

.shape-2 {
    width: 90vmax;
    height: 90vmax;
    background-color: var(--shape-2);
    top: -45vmax;
    right: -25vmax;
}

.shape-3 {
    width: 60vmax;
    height: 60vmax;
    background-color: var(--shape-3);
    top: -30vmax;
    right: -10vmax;
}

.shape-4 {
    width: 30vmax;
    height: 30vmax;
    background-color: var(--shape-4);
    top: -15vmax;
    right: 5vmax;
}

.left-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
}

.brand {
    margin-bottom: -70px;
}

.brand-logo {
    max-width: 250px;
    height: auto;
    display: block;
}

.main-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--left-text);
}

.text-bold {
    color: #ffffff;
    font-weight: 800;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--left-text);
}

.highlight-item i {
    color: #ffffff;
    font-size: 14px;
}

.industries-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--left-text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 25px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.industries-row:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.industries-row i {
    margin-right: 6px;
    color: #ffffff;
    font-size: 14px;
}

.divider {
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.8;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 10px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.card-title i {
    color: #ffffff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
}

.card-list {
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.card-list li {
    margin-bottom: 9px;
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    top: 1px;
    color: #38bdf8;
    font-size: 16px;
    font-weight: 800;
}

/* =====================================================
   LEFT FOOTER – EXACT WIDTH MATCH WITH CARDS
   ===================================================== */

.left-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Same as cards-container */
    gap: 25px;
    /* Match cards gap */
    margin-top: 20px;
    width: 100%;
    /* Match cards container width */
    max-width: 100%;
}

/* Individual footer blocks styled like mini-cards */
.left-footer a {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;

    padding: 12px 16px;

    color: var(--left-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: all 0.3s ease;
}

/* Hover effect like glass cards */
.left-footer a:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Icon style */
.left-footer a i {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 8px;
}

/* --- RIGHT PANEL --- */
/* =====================================================
   TOP CIRCULAR LOGO ABOVE LOGIN BOX
   ===================================================== */

.right-panel {
    position: relative;
}

.top-circle-logo {
    position: absolute;
    top: 40px;
    /* Distance from top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;

    width: 100px;
    height: 100px;

    border-radius: 50%;
    background: linear-gradient(145deg, #0f172a, #111c35);
    border: 2px solid rgba(255, 255, 255, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.top-circle-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.right-panel {
    width: 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-right-panel);
    transition: background-color 0.4s ease;
}

.login-box {
    margin: auto;
    margin-top: 100px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px var(--card-shadow);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--right-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--right-text);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--right-text-muted);
    font-size: 15px;
}

.input-wrapper input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--right-text);
    padding: 14px 45px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Right Eye Icon */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9aa4b2;
    z-index: 5;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--right-text);
    cursor: pointer;
}

.custom-checkbox {
    accent-color: var(--accent-teal);
    width: 14px;
    height: 14px;
}

.forgot-password {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.forgot-password:hover {
    color: var(--shape-3);
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: var(--shape-2);
    transform: translateY(-2px);
}

.login-footer-card {
    text-align: center;
    color: var(--right-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* --- CORPORATE FOOTER ON RIGHT --- */
.corporate-footer {
    width: 100%;
    background: transparent;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--right-text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-right a {
    color: var(--right-text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-right a:hover {
    color: var(--right-text);
}

.dot {
    opacity: 0.4;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
/* This tells the website how to squeeze down for tablets and phones */

/* =====================================================
   LAPTOP HEIGHT OPTIMIZATION (NO SCROLL / NO HEIGHT INCREASE)
   ===================================================== */

/* Target common laptop heights */
@media (min-width: 1200px) and (max-height: 900px) {

    /* Move entire left content slightly upward */
    .left-panel {
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: flex-start;
    }

    .left-content {
        transform: translateY(-20px);
    }

    /* Reduce excessive spacing without breaking design */
    .brand {
        margin-bottom: -80px;
    }

    .main-title {
        font-size: 30px;
        margin-bottom: 18px;
        line-height: 1.1;
    }

    .highlights-grid {
        gap: 10px;
        margin-bottom: 10px;
    }

    .highlight-item {
        font-size: 13px;
    }

    .industries-row {
        padding: 8px 16px;
        font-size: 11px;
        margin-top: 6px;
        margin-bottom: 20px;
    }

    .cards-container {
        gap: 18px;
        margin-bottom: 20px;
    }

    .glass-panel {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .card-list {
        font-size: 13px;
        line-height: 1.5;
    }

    .card-list li {
        margin-bottom: 6px;
    }

    /* Footer contact visibility fix */
    .left-footer {
        margin-top: 20px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .page-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .main-container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        min-height: auto;
    }

    .left-panel {
        padding: 80px 20px 40px 20px;
    }

    .right-panel {
        padding: 40px 20px;
        background-color: transparent;
    }

    .login-box {
        margin: 0 auto;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        position: fixed;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 22px;
        text-align: center;
    }

    .brand {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .industries-row {
        justify-content: center;
        padding: 12px 15px;
         margin-bottom: 20px;
    }

    .login-box {
        padding: 30px 20px;
        width: 95%;
    }

    .corporate-footer {
        text-align: center;
        padding: 20px 10px;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        line-height: 2;
    }
}

/* =====================================================
   MOBILE DEVICES (PHONES)
   ===================================================== */

@media (max-width: 576px) {

    body {
        overflow-y: auto;
        height: auto;
    }

    .main-container {
        flex-direction: column;
    }

    /* Hide large background shapes for performance */
    .bg-shape {
        display: none;
    }

    /* LEFT PANEL */
    .left-panel {
        width: 100%;
        padding: 30px 18px;
        text-align: center;
    }

    .left-content {
        max-width: 100%;
    }

    .brand {
        margin-bottom: 15px;
    }

    .brand-logo {
        max-width: 180px;
        margin: auto;
    }

    .main-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 18px;
    }

    .highlight-item {
        font-size: 13px;
        justify-content: center;
    }

    .industries-row {
        justify-content: center;
        font-size: 11px;
        padding: 10px 14px;
    }

    /* Cards */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .glass-panel {
        padding: 12px;
    }

    /* Contact Footer */
    .left-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* RIGHT PANEL */
    .right-panel {
        width: 100%;
        padding: 30px 15px;
    }

    /* Circle logo */
    .top-circle-logo {
        width: 70px;
        height: 70px;
        top: -35px;
    }

    .top-circle-logo img {
        width: 60%;
    }

    /* Login box */
    .login-box {
        margin-top: 40px;
        padding: 25px 18px;
        width: 100%;
        max-width: 100%;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .input-wrapper input {
        padding: 12px 40px;
        font-size: 13px;
    }

    .btn-primary {
        padding: 13px;
        font-size: 14px;
    }

    /* Footer */
    .corporate-footer {
        font-size: 10px;
        text-align: center;
        padding: 15px 10px;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    /* Theme Toggle */
    .theme-toggle {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        left: auto;
        position: fixed;
    }

}

/* =====================================================
   SMALL TABLETS
   ===================================================== */

@media (min-width: 576px) and (max-width: 768px) {

    .main-container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .left-panel {
        padding: 50px 30px;
        text-align: center;
    }

    .brand-logo {
        max-width: 200px;
        margin: auto;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .left-footer {
        grid-template-columns: 1fr;
    }

    .login-box {
        max-width: 420px;
        margin: 60px auto 0 auto;
    }

}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}