/* Core Reset & Apple Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Floating Blurred Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
     font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            cursor: pointer;
            letter-spacing: -0.02em;
            flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #515154;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #000000;
}

/* Buttons */
.btn-signin {
    background-color: #1d1d1f;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 500;
}

.btn-signin:hover {
    background-color: #000000;
}

.btn-primary {
    display: inline-block;
    background-color: #0071e3;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 24px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0077ed;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    color: #bf4800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.subtitle {
    font-size: 19px;
    color: #86868b;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Features Grid */
.features {
    padding: 60px 0;
    background-color: #f5f5f7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 14px;
    color: #6e6e73;
}

/* Security Box */
.security {
    padding: 60px 0;
}

.security-box {
    background-color: #ffffff;
    border-left: 3px solid #86868b;
    padding: 16px 24px;
    font-size: 14px;
    color: #6e6e73;
}

/* Footer */
.footer {
    padding: 40px 24px;
    text-align: center;
    font-size: 12px;
    color: #86868b;
    border-top: 1px solid #e8e8ed;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .subtitle { font-size: 16px; }
}

/* ==========================================
   Broker Login Page Component Styles
   ========================================== */

.login-wrapper {
    min-height: calc(100vh - 48px); /* Account for your 48px navbar */
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f7; /* Matches your features section background */
    padding: 24px;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    padding: 40px 32px;
    border-radius: 18px; /* Matches your .card border-radius */
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.login-card h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 6px;
    text-align: center;
}

.login-card p {
    font-size: 14px;
    color: #86868b;
    text-align: center;
    margin-bottom: 28px;
}

/* Form Layout Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0071e3; /* Accent blue matching your .btn-primary */
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* Functional Forms Button */
.btn-submit {
    width: 100%;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background-color: #0077ed;
}

.btn-submit:disabled {
    background-color: #aeaeaf;
    cursor: not-allowed;
}

/* System Exception UI Alert */
.auth-error {
    background-color: rgba(223, 72, 0, 0.06);
    color: #bf4800; /* Matching your badge orange color rule */
    border: 1px solid rgba(191, 72, 0, 0.15);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 16px;
    text-align: center;
    display: none;
}
