:root {
    --bg-left: #0e03bb;
    --bg-right: #e4e3ff;
    --bg-card: #ffffff;
    --bg-input: #f6f6f6;

    --color-primary: #03045e;
    --color-secondary: #041c28;
    --color-accent: #43cb46;
    --color-link: #230ae6;
    --color-white: #ffffff;

    --font-poppins: 'Poppins', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
}

/* ================== GLOBAL ================== */

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-poppins);
    height: 100vh;
    overflow: hidden; /* prevents scroll */
}

/* ================== MAIN LAYOUT ================== */

.main-content {
    display: flex;
    height: calc(100vh - 70px); /* adjust if navbar height changes */
}

/* ================== LEFT SECTION ================== */

.hero-section {
    width: 50%;
    background: var(--bg-left);
    color: var(--color-white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background: url('../../images/dashboard/bgleftimage.png') center/cover no-repeat;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-family: var(--font-roboto);
    font-size: 22px;
    margin-bottom: 20px;
}

.hero-subtitle .bold {
    font-weight: 800;
}

.hero-description {
    font-family: var(--font-roboto);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: #e4e3ff;
    border: 2px solid #653be6;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 25px;
}

.btn-back:hover {
    background: var(--color-white);
}

.btn-back span {
    color: var(--color-primary);
    font-size: 16px;
}

.powered-by {
    font-size: 18px;
}

.powered-by strong {
    font-weight: 700;
}

/* ================== RIGHT SECTION ================== */

.login-section {
    width: 50%;
    background: var(--bg-right);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Login Card */

.login-card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 30px;
}

/* Toggle */

.toggle-container {
    display: flex;
    background: var(--color-secondary);
    border-radius: 8px;
    height: 42px;
    margin-bottom: 20px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-btn.active {
    background: var(--color-accent);
    color: #000;
}

/* Form */

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: var(--bg-input);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.form-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: underline;
}

.form-links a:hover {
    color: var(--color-accent);
}

.btn-signin {
    width: 100%;
    height: 45px;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-signin:hover {
    background: var(--color-accent);
    color: #000;
}

/* ================== RESPONSIVE ================== */

@media (max-width: 1024px) {
    body {
        overflow-y: auto;
    }

    .main-content {
        flex-direction: column;
        height: auto;
    }

    .hero-section,
    .login-section {
        width: 100%;
        height: auto;
    }

    .hero-section {
        padding: 40px;
    }

    .login-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        display: none;
    }

    .login-card {
        max-width: 100%;
        padding: 25px;
    }

    .login-card h2 {
        font-size: 30px;
         margin-bottom: 20px;
    }
}
