/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Outlined');

:root {
    --bg-dark: #0B0E17;
    --card-bg: #151A2D;
    --primary-accent: #6C5DD3;
    /* Purple glow/accent */
    --text-white: #FFFFFF;
    --text-muted: #8E92BC;
    --input-bg: #1F263E;
    --input-border: #2D3352;
    --btn-primary: #1F263E;
    /* Dark button bg */
    --btn-primary-hover: #2D3352;
    --success-color: #2ECC71;
    --border-radius: 12px;
    --font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    height: 100vh;
    /* Force full height */
    width: 100vw;
    /* Force full width */
    overflow: hidden;
    /* Prevent scrolling */
    color: var(--text-white);
    background-image: radial-gradient(circle at 80% 50%, rgba(108, 93, 211, 0.15), transparent 40%);
}

/* Main Layout */
.login-page-wrapper {
    display: flex;
    height: 100%;
    /* Fill body */
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    /* Ensure padding doesn't add to size */
}

.login-content-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

/* Left Section: Branding & Features */
.col-branding {
    flex: 1;
    max-width: 500px;
}

.brand-section {
    margin-bottom: 2rem;
}

.brand-logo-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6C5DD3 0%, #A49EF0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    /* More space */
    box-shadow: 0 10px 20px rgba(108, 93, 211, 0.4);
}

.brand-logo-icon {
    font-size: 40px;
    color: white;
}

.brand-title {
    font-size: 3rem;
    /* Larger Title */
    font-weight: 800;
    /* Extra Bold */
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.feature-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Increased gap */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    /* Align top to handle multi-line text */
    gap: 1.25rem;
}

.feature-icon-wrapper {
    width: 48px;
    /* Larger icon background */
    height: 48px;
    border-radius: 12px;
    /* Soft square/rounded rect as per design */
    background: rgba(108, 93, 211, 0.1);
    border: 1px solid rgba(108, 93, 211, 0.2);
    /* Added subtle border */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper .material-icons-outlined {
    color: #A49EF0;
    font-size: 24px;
    /* Larger icon */
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    /* Align with icon height */
}

.feature-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    /* Bolder title */
    margin: 0 0 0.25rem 0;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 0.95rem;
    /* Slightly larger readability */
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.login-stats-row {
    display: flex;
    gap: 1.5rem;
    /* Reduced from 3rem */
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

/* Right Section: Login Form */
.col-login-form {
    flex: 1;
    max-width: 480px;
    position: relative;
}

/* Glow effect behind card */
.col-login-form::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(108, 93, 211, 0.2) 0%, transparent 70%);
    z-index: -1;
    border-radius: 32px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.login-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control-custom {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    /* Left padding for icon space if we move icon to left, currently icon is left in design */
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    height: auto;
    /* Override default bootstrap */
    line-height: 1.5;
}

/* Adjust padding if icon is on the left */
.input-icon-left {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 20px;
}

.input-icon-right {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
}

.form-control-custom:focus {
    border-color: var(--primary-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 93, 211, 0.2);
}

.form-control-custom::placeholder {
    color: #555B77;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkbox-visual {
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
}

.custom-checkbox input:checked+.checkbox-visual {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.checkbox-visual::after {
    content: 'check';
    font-family: 'Material Icons Outlined';
    font-size: 14px;
    color: white;
    display: none;
}

.custom-checkbox input:checked+.checkbox-visual::after {
    display: block;
}

.checkbox-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.forgot-password-link {
    color: #A49EF0;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    background: var(--input-bg);
    /* Dark bg as in design */
    border: 1px solid var(--input-border);
    color: var(--text-white);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-login:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 93, 211, 0.3);
}

.btn-login .material-icons-outlined {
    font-size: 20px;
}

.signup-text {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-link {
    color: #A49EF0;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.footer-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-item .material-icons-outlined {
    font-size: 16px;
}

/* Responsiveness */
@media (max-width: 992px) {
    body {
        overflow-y: auto;
        /* Allow scrolling */
        height: auto;
        /* Allow height to grow */
        min-height: 100vh;
    }

    .login-content-container {
        flex-direction: column;
        gap: 3rem;
    }

    .col-branding {
        text-align: center;
        max-width: 100%;
    }

    .brand-logo-wrapper {
        margin: 0 auto 1.5rem auto;
    }

    /* Keep features visible but compact if needed, or hide as originally planned. 
       User didn't strictly ask to keep them, but asked for "responsive". 
       Hiding them on small screens is a common pattern to save space. 
       We'll keep the current behavior of hiding feature list on mobile to save space. */
    .feature-list {
        display: none;
    }

    .login-stats-row {
        justify-content: center;
        margin-top: 2rem;
        /* Ensure it stays in one line */
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-stats-row {
        flex-direction: row;
        /* FORCE ROW */
        gap: 0.5rem;
        /* Tighter gap */
        /* Reduce gap to fit */
        align-items: center;
        width: 100%;
        justify-content: space-between;
        /* Spread evenly */
        flex-wrap: nowrap;
    }

    /* Make stats smaller on very small screens to fit */
    .stat-item h3 {
        font-size: 1.1rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }
}