/* auth.css - Complete File */

/* 1. Page Background & Centering */
body {
    background-color: #F5F7FA;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

/* 2. Main Container */
.auth-container {
    width: 100%;
    max-width: 480px; /* Slightly wider for broker details */
    padding: 20px;
}

/* 3. Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}
.back-link:hover {
    color: #10B981;
    transform: translateX(-5px);
}

/* 4. White Auth Box */
.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(26, 54, 93, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header h2 {
    color: #1A365D;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.auth-header p {
    color: #718096;
    font-size: 0.95rem;
}

/* 5. Role Switcher (Tenant/Broker Toggle) */
.role-switcher {
    display: flex;
    background: #EDF2F7;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.role-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.role-btn i { font-size: 1rem; }

.role-btn.active {
    background: white;
    color: #10B981;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* 6. Form Inputs */
.input-group {
    margin-bottom: 1.2rem;
}
.input-group label {
    display: block;
    font-size: 0.9rem;
    color: #4A5568;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #A0AEC0;
    z-index: 2;
}
/* Input Base Styles */
.input-wrapper input, 
input[type="text"], 
input[type="number"] {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Left padding for icon */
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
    box-sizing: border-box; /* Critical for layout */
}
/* Fix for inputs without icons (Broker Row) */
.broker-row input {
    padding-left: 15px !important; 
}

.input-wrapper input:focus,
.broker-row input:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 7. BROKER DETAILS SECTION (The missing part) */
#broker-fields {
    animation: slideDown 0.3s ease-out;
}

/* Divider Line */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}
.divider span {
    padding: 0 10px;
    color: #10B981;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Side-by-Side Row */
.broker-row {
    display: flex;
    gap: 15px;
    margin-bottom: 1.2rem;
}
.broker-row .input-group {
    flex: 1;
    margin-bottom: 0; /* Remove bottom margin inside row */
}

/* 8. Buttons & Footer */
.btn-primary {
    background-color: #10B981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}
.btn-primary:hover {
    background-color: #059669;
}
.full-width { width: 100%; display: block; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}
.auth-footer a {
    color: #10B981;
    font-weight: 600;
    text-decoration: none;
}

/* Animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}