/* Residential Agent Registration Page Styles */
/* Following the same structure as buyer-register.css */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

/* Brand Colors */
:root {
    --brand-red: #8B0000;
    --brand-red-rgb: 139, 0, 0;
    --brand-red-hover: #660000;
    --bs-danger: var(--brand-red);
    --bs-danger-rgb: var(--brand-red-rgb);
    --secondary-color: #343a40;
    --text-color: #333;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
}

/* Base Styles */
.agent-register-page,
body {
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.agent-register-page .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background-color 0.3s;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--brand-red-hover);
}

.back-to-top i {
    font-size: 16px;
}

/* Section Cards */
.section-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-section-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-section-card .card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--brand-red);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.form-section-card .card-body {
    padding: 1.75rem 1.75rem 2.25rem;
}

/* Page Headings */
.page-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 2.1vw, 1.95rem);
    margin: 0 0 0.25rem;
    color: var(--brand-red);
    line-height: 1.2;
}

.page-subtitle {
    margin: 0 0 0.75rem;
    color: var(--brand-red);
    font-size: 1.1rem;
}

.why-title {
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    line-height: 1.25;
}

.sidebar-title {
    color: var(--brand-red);
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 8px;
}

.section-title {
    color: var(--brand-red);
    font-weight: 800;
    font-size: 1.75rem;
}

.magic-door-title {
    color: var(--brand-red);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.biggest-engine-title {
    color: var(--brand-red);
    font-weight: 900;
    font-size: 1.15rem;
    margin: 16px 0;
    text-transform: uppercase;
}

/* Mascot Container */
.mascot-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.mascot-img {
    width: 64px;
    height: auto;
}

.mascot-text h3 {
    margin: 0;
    color: var(--brand-red);
    font-weight: 800;
    font-size: 1.2rem;
}

.mascot-text p {
    margin: 0.25rem 0 0;
    font-size: 0.825rem;
    line-height: 1.2;
    color: #6b7280;
}

/* Styled Lists */
.list-styled {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-styled li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.5rem;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.6;
}

.list-styled li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1rem;
}

/* Button Styles - Match Buyer Registration */
.btn-danger,
.btn-danger.btn-lg,
.create-account-btn,
.history-btn {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-danger:hover,
.btn-danger.btn-lg:hover,
.create-account-btn:hover,
.history-btn:hover {
    background-color: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-danger:active,
.btn-danger.btn-lg:active,
.create-account-btn:active,
.history-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.3);
}

.history-btn {
    margin-top: 1rem;
    padding: 0.7rem 1.1rem;
    font-weight: 700;
}

.btn a {
    color: inherit !important;
}

/* Social Login Styles - Match Buyer Registration */
.social-login-container {
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 200px;
    text-decoration: none;
}

.social-btn img {
    margin-right: 8px;
    height: 18px;
    width: 18px;
}

.google-btn {
    background-color: #fff;
    color: #757575;
    border: 1px solid #ddd;
}

.google-btn:hover {
    background-color: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #757575;
}

.facebook-btn {
    background-color: #1877f2;
    color: white;
    border: 1px solid #1877f2;
}

.facebook-btn:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: white;
}

.apple-btn {
    background-color: #000;
    color: white;
    border: 1px solid #000;
}

.apple-btn:hover {
    background-color: #333;
    color: white;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.separator span {
    padding: 0 10px;
    font-size: 14px;
    color: #6c757d;
    background-color: #fff;
}

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

.form-group label,
.form-label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 13px;
}

.required {
    color: var(--brand-red);
    margin-left: 0.25rem;
}

.form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-control,
.form-select {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 13px;
    transition: all 0.15s ease-in-out;
}

/* Modern Placeholder Styling */
.form-control::placeholder,
.form-select::placeholder {
    color: #adb5bd;
    font-size: 0.8125rem;
    font-weight: 400;
    opacity: 0.7;
    font-style: normal;
}

.form-control:focus::placeholder,
.form-select:focus::placeholder {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2);
    outline: none;
}

/* Input Group (Password Toggle) */
.input-group {
    display: flex;
    position: relative;
    flex-wrap: nowrap !important;
    align-items: stretch;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 3rem;
}

.input-group .btn,
.input-group .toggle-password,
.input-group .btn-outline-secondary {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none;
    background: transparent;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.5rem 0.75rem;
    min-width: 44px;
    color: #6c757d;
}

.input-group .toggle-password:hover,
.input-group .btn-outline-secondary:hover {
    color: var(--brand-red);
    background: transparent;
}

.input-group .btn-outline-secondary i {
    font-size: 1.05rem;
}

/* Password Strength Meter */
.progress {
    background: #eef1f4;
    height: 6px;
    border-radius: 99px;
}

.progress-bar {
    background: var(--brand-red);
    transition: width 0.3s ease;
}

.password-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    font-size: 13px;
    padding: 12px;
}

.alert-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid var(--brand-red);
    color: #495057;
}

.alert-light {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Terms Section */
.terms-section {
    margin-top: 1.75rem;
    padding: 0 1.5rem 1.5rem;
}

.agree-inline {
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.form-check-input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-red-rgb), 0.25);
}

.form-check-label {
    cursor: pointer;
}

.terms-link {
    color: var(--brand-red);
    text-decoration: underline;
}

.terms-link:hover {
    color: var(--brand-red-hover);
}

/* Benefits Sidebar */
.benefits-sidebar {
    background-color: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.benefits-list {
    padding-left: 18px;
}

.benefits-list > li {
    list-style: decimal;
    margin-bottom: 0.85rem;
}

.benefits-list p {
    margin: 0;
    color: #222;
}

/* Income Section */
.income-section {
    background: var(--bg-light);
    margin-top: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto 24px;
}

/* Commission Banner */
.commission-banner {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--brand-red);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.commission-banner h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.commission-percent {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--brand-red);
    margin-top: 0.5rem;
    line-height: 1;
}

.commission-percent span {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

/* Services List */
.services-list {
    padding-left: 18px;
}

.services-list li {
    margin-bottom: 18px;
}

/* Magic Door Section */
.magic-door-section {
    background: #fff;
    padding: 60px 0;
    margin-top: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 3rem !important;
    min-height: 40vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.magic-door-subtitle,
.property-count {
    font-size: 1rem;
    color: #444;
    margin-bottom: 8px;
}

/* Modal Styles */
.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--brand-red);
    font-weight: 700;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .mascot-container {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .benefits-sidebar {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .agent-register-page {
        padding: 1.5rem 0;
    }

    .page-title {
        text-align: center;
        font-size: 1.7rem;
    }

    .page-subtitle {
        text-align: center;
    }

    .why-title {
        text-align: center;
    }

    .mascot-container {
        justify-content: center;
        margin-top: 16px;
    }

    .commission-percent {
        font-size: 2.4rem;
    }

    .create-account-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        justify-content: center;
    }

    .section-card {
        padding: 1rem;
    }

    .form-section-card .card-body {
        padding: 1rem;
    }

    .terms-section {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .history-btn {
        width: 100%;
        text-align: center;
    }

    .list-styled li {
        font-size: 0.95rem;
    }
}

/* Loading State for Submit Button */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Remove extra spacing at bottom of income section */
.income-section .section-card:last-child {
    margin-bottom: 0 !important;
}

/* Google OAuth / Social Login Styles */
.social-login-container {
    text-align: center;
    margin-bottom: 2rem;
}

#googleSignInBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 240px;
}

#googleSignInBtn img {
    margin-right: 8px;
}

#googleSignInBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#googleSignInBtn:active {
    transform: translateY(0);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.separator span {
    padding: 0 15px;
    font-size: 14px;
    color: #6c757d;
    background-color: #fff;
    font-weight: 500;
}

