@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #201b1a;
    height: 100vh;
    overflow: hidden;
}

/* ===== LAYOUT ===== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100%;
}

/* ===== LEFT PANEL ===== */
.left-panel {
    background: #201b1a;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.tagline {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

/* Circle Rings */
.hero-section {
    position: relative;
    margin-top: 1.5rem;
    z-index: 2;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ring-1 { width: 300px; height: 300px; margin-top: -30px; }
.ring-2 { width: 480px; height: 480px; margin-top: -30px; }

.main-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 3;
}

/* ===== 3D ISO SCENE ===== */
.iso-scene {
    position: relative;
    flex: 1;
    margin-top: 1.5rem;
    z-index: 2;
}

/* Shared card style */
.iso-card {
    position: absolute;
    background: #1c1917;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
}

/* Finance card - top left */
.card-finance {
    top: 0;
    left: 0;
    width: 48%;
    height: 42%;
    transform: perspective(800px) rotateX(10deg) rotateY(5deg);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-chart { opacity: 0.9; }

.coin-stack {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.coin {
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-radius: 50%;
}
.coin-symbol {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
}

/* HR card - top right */
.card-hr {
    top: 0;
    right: 0;
    width: 44%;
    height: 45%;
    transform: perspective(800px) rotateX(10deg) rotateY(-5deg);
}
.hr-icons {
    display: flex;
    gap: 6px;
    padding: 4px 0;
}
.hr-person {
    width: 36px; height: 52px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.hr-person::before { content: "👤"; filter: brightness(0.6); }
.sales-c::before { content: "💼"; filter: brightness(0.6); }

/* Center white card */
.iso-center-card {
    position: absolute;
    bottom: 32%;
    left: 50%;
    transform: translateX(-50%) perspective(600px) rotateX(25deg);
    width: 42%;
    background: white;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 5;
}
.center-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-style: italic;
}
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}
.bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
}

/* Supply Chain card - bottom left */
.card-supply {
    bottom: 0;
    left: 0;
    width: 46%;
    height: 32%;
    transform: perspective(800px) rotateX(-8deg) rotateY(5deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.truck-icon { font-size: 2rem; }

/* Sales card - bottom right */
.card-sales {
    bottom: 0;
    right: 0;
    width: 44%;
    height: 35%;
    transform: perspective(800px) rotateX(-8deg) rotateY(-5deg);
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    background: #fff;
    border-top-left-radius: 42px;
    border-bottom-left-radius: 42px;
    display: flex;
    flex-direction: column;
    padding: 2.8rem 4rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
}
.signup-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}
.signup-link a {
    color: #111;
    text-decoration: none;
}

/* Form */
.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
    width: 100%;
    align-self: center;
}
.form-container h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    color: #111;
}

.input-group {
    position: relative;
    margin-bottom: 1.4rem;
}
.input-group input {
    width: 100%;
    padding: 1.15rem 1.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    outline: none;
    color: #222;
    transition: border-color 0.25s;
    background: #fff;
}
.input-group input::placeholder { color: #9ca3af; }
.input-group input:focus { border-color: #ff4e00; }

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(90deg, #ff4e00 0%, #ff0055 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(255, 0, 85, 0.35);
    transition: opacity 0.2s, transform 0.15s;
}
.submit-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }

/* Footer */
.right-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #9ca3af;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

/* ===== RESPONSIVE - HP / TABLET (Android & iPhone) =====
   Plain white page with just the login form — the dark hero panel is
   desktop-only. body must be allowed to scroll here (desktop locks it to
   100vh), otherwise the Sign In button hides behind the phone keyboard. */
@media (max-width: 900px) {
    body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff;
    }
    .split-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .left-panel { display: none; }
    .right-panel {
        flex: 1;
        border-radius: 0;
        box-shadow: none;
        padding: calc(1.5rem + env(safe-area-inset-top)) calc(1.5rem + env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) calc(1.5rem + env(safe-area-inset-left));
    }
    .form-container {
        flex: none;
        justify-content: flex-start;
        margin: 3.5rem auto 0;
    }
    .form-container h2 { font-size: 2.2rem; margin-bottom: 1.75rem; }
    .input-group { margin-bottom: 1rem; }
    .input-group input {
        padding: 1rem 3.2rem 1rem 1.25rem;
        font-size: 16px;  /* < 16px makes iOS Safari zoom in on focus */
    }
    .toggle-password { padding: 10px; right: 8px; }  /* 44px tap target */
    .submit-btn { margin-top: 1.4rem; padding: 1.05rem; }
    .right-footer {
        margin-top: auto;
        padding-top: 2rem;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 360px), (max-height: 600px) {
    .form-container { margin-top: 2rem; }
    .form-container h2 { font-size: 1.9rem; margin-bottom: 1.3rem; }
}

/* ===== ERROR MESSAGE ===== */
.form-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}
