/* CSS Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #0064e0;
    --primary-blue-hover: #0056c6;
    --primary-blue-light: #e7f3ff;
    --text-main: #1c1e21;
    --text-muted: #65676b;
    --text-light: #8a8d91;
    --border-color: #e4e6eb;
    --input-border: #ccd0d5;
    --input-bg: #ffffff;
    --input-focus: #0064e0;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Main Container Layout */
.main-container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 60px);
    width: 100%;
}

/* Left Section */
.left-section {
    flex: 1.2;
    padding: 40px 40px 40px 70px;
    display: flex;
    flex-direction: column;
}

.header-logo {
    margin-bottom: 20px;
}

.logo-icon {
    /* Facebook's web navbar icon is typically 40px x 40px */
    width: 40px; 
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-icon:hover {
    transform: scale(1.04);
}

/* Target the <img> tag instead of svg */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents distortion if image aspect ratio varies */
    display: block;
}

.left-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    gap: 20px;
}

.hero-text-wrapper {
    flex: 0 0 220px;
    z-index: 2;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.2px;
    color: #000000;
}

.hero-title .blue-text {
    color: var(--primary-blue);
}

.hero-image-wrapper {
    flex: 1;
    max-width: 540px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.03));
}

/* Divider line */
.divider {
    width: 1px;
    background-color: var(--border-color);
    align-self: stretch;
}

/* Right Section */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #ffffff;
}

.form-container {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input::placeholder {
    color: #8d949e;
}

.input-group input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0, 100, 224, 0.15);
}

.password-group {
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.toggle-password:hover {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.05);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    margin-top: 4px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 100, 224, 0.25);
}

.btn-submit:hover {
    background-color: var(--primary-blue-hover);
    box-shadow: 0 4px 12px rgba(0, 100, 224, 0.35);
}

.btn-submit:active {
    transform: scale(0.99);
}

.forgot-password {
    text-align: center;
    margin-top: 18px;
    margin-bottom: 40px;
}

.forgot-password a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

.create-account-wrapper {
    margin-bottom: 32px;
}

.btn-create {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--primary-blue);
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-create:hover {
    background-color: var(--primary-blue-light);
}

.btn-create:active {
    transform: scale(0.99);
}

.meta-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.meta-logo {
    width: 22px;
    height: 22px;
    fill: var(--primary-blue);
}

/* Footer Styling */
.footer-languages {
    border-top: 1px solid var(--border-color);
    padding: 16px 40px;
    background-color: #ffffff;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-link {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.lang-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.lang-link.active {
    color: var(--text-main);
    font-weight: 600;
}

/* Modal Overlay & Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1c1e21;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row input, .form-row select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.modal-body input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.gender-selectors .radio-card {
    flex: 1;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    cursor: pointer;
}

.gender-selectors input {
    width: auto !important;
}

.modal-terms {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 8px;
}

.modal-footer {
    text-align: center;
    margin-top: 10px;
}

.btn-register {
    width: 60%;
    padding: 12px;
    background-color: #00a400;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background-color: #008d00;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1c1e21;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 960px) {
    .main-container {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 1px;
    }

    .left-section {
        padding: 30px 20px;
        align-items: center;
    }

    .left-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text-wrapper {
        flex: auto;
    }

    .hero-title {
        font-size: 40px;
    }

    .right-section {
        padding: 30px 20px 50px;
    }
}
