/* ==========================================================================
   1. GLOBAL VARIABLES & BASE STYLES (From your index.html)
   ========================================================================== */
:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ==========================================================================
   2. RE-DESIGNED NAVBAR LAYOUT (Aligned perfectly with your new logo icon)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%; /* Perfectly matches your landing page margins */
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px; /* Perfect breathing room between icon and text */
}

.nav-logo {
    height: 38px;      /* Restricts the icon size beautifully */
    width: auto;       /* Prevents stretching */
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;  /* Thick/Bold weight for "Broker" */
    color: #1e293b;    /* Using your matching dark variable */
    letter-spacing: -0.5px;
}

.logo-text-light {
    font-weight: 400;  /* Elegant lighter weight for "Logic" */
    color: #64748b;    /* Slate grey contrast accent */
}

/* ==========================================================================
   3. COMPONENTS & LANDING PAGE ELEMENTS (From your index.html)
   ========================================================================== */
.login-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.login-btn:hover {
    opacity: 0.9;
}

header {
    text-align: center;
    padding: 100px 10%;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

p.subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 10%;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ==========================================================================
   4. BROKER LOGIN PORTAL PAGE STYLES
   ========================================================================== */
.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Brand layout placement above the main interactive interface */
.login-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    margin-bottom: 28px; /* Breathing space above the card container */
}

.login-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px; /* Matches your feature cards profile */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Soft, premium shadow depth */
    width: 100%;
    max-width: 360px; /* Marginally wider layout for comfortable inputs */
    box-sizing: border-box;
}

.login-card h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b; /* Clean slate-grey label text */
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--dark);
    transition: all 0.2s ease;
}

/* Visual high-light ring when clicking into form blocks */
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.login-card button:hover {
    background-color: #1d4ed8; /* Darker primary shift on hover interaction */
}

.glass { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); }
.drop-zone-active { border-color: #3b82f6; background: #eff6ff; }