﻿body {
    font-family: 'Open Sans';
}

.main-container {
    min-height: 100vh;
}

.mobile-logo {
    display: none;
}

.left-panel {
    padding: 40px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.right-panel {
    background: var(--url-background-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed, fixed;
    padding: 5%;
}

.logo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.logo-image {
    max-width: 250px;
    width: 250px;
    height: auto;
}

.welcome-heading {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 30px;
    text-align: center;
}

.benefits-list {
    max-width: 600px;
    width: 100%;
}

.benefit-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    text-align: left;
}

    .benefit-item:last-child {
        border-bottom: none;
    }

.check-icon {
    color: #28a745;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin: 40px;
    width: 95vw;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5rem;
}

.form-subtitle {
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1rem;
}

.form-control {
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 5px;
}

.mobile-input-margin {
    margin-bottom: 0;
}

.password-requirements {
    margin-bottom: 20px;
}

.requirement-item {
    font-size: 14px;
    color: black;
    margin-bottom: 5px;
}

.requirement-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: black;
    margin-right: 10px;
}

.continue-btn {
    background-color: #adb5bd;
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: 500;
    margin-top: 15px;
}

.sign-in-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.left-content {
    max-width: 600px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0px 20px 0px 20px;
}

.social-btn {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    cursor: pointer;
    transition: all 0.2s;
}

    .social-btn:hover {
        background-color: #f8f9fa;
        border-color: #c6c7c8;
    }

    .social-btn i {
        font-size: 24px;
    }

.google-icon {
    color: #DB4437;
}

.microsoft-icon {
    color: #00A4EF;
}

.btn {
    background-color: #1e4089;
    color: white;
    font-weight: 600;
}

    .btn:hover {
        background-color: #1e4089;
        color: white;
        font-weight: 600;
    }

/* Mobile styles */
@media (max-width: 767px) {
    .password-requirements .requirement-item {
        position: relative;
    }

    .form-control {
        margin-bottom: 5px;
    }

    .password-requirements {
        margin-bottom: 10px;
    }

    .main-container {
        position: relative;
    }

        .main-container::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

    .right-panel {
        background-color: transparent;
        position: relative;
        z-index: 1;
    }

    .left-panel {
        display: none;
    }

    .form-container {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }

    .form-control {
        background-color: white;
        border: none;
    }

    .captcha-container {
        margin-bottom: 30px;
    }

    .mobile-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .mobile-logo img {
            max-width: 300px; /* Increased from 80px */
            margin-bottom: 5px;
        }

        .mobile-logo .passport-text {
            color: #4e89e8;
            font-size: 22px; /* Increased from 18px */
            letter-spacing: 1px;
            font-weight: 500;
        }

    .social-login {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .or-divider {
        display: block;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .left-panel {
        padding: 20px;
    }

    .form-container {
        margin: 20px;
        padding: 20px;
    }
}


/* Privacy Policy Modal */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

    .privacy-modal.show {
        display: flex;
    }

.privacy-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.privacy-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
}

.privacy-modal-body {
    padding: 0;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.privacy-policy-scroll {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #f8f9fa;
}

    .privacy-policy-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .privacy-policy-scroll::-webkit-scrollbar-track {
        background: #f8f9fa;
    }

    .privacy-policy-scroll::-webkit-scrollbar-thumb {
        background-color: #adb5bd;
        border-radius: 4px;
    }

.privacy-policy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.privacy-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
}

.privacy-agree-btn {
    background-color: #1e4089;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .privacy-agree-btn:hover:not(:disabled) {
        background-color: #15306b;
    }

    .privacy-agree-btn:disabled {
        background-color: #adb5bd;
        cursor: not-allowed;
        opacity: 0.7;
    }

.form-label {
    font-size: 0.8rem;
}

.form-control {
    border-radius: 8px;
    padding-right: 40px !important; /* Important to ensure the padding is always applied */
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    font-size: 0.8rem;
    line-height: 1rem;
    margin-bottom: 0.5rem;
}

/* Position the icon container */
.icon-container {
    position: absolute;
    right: 10px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10; /* Ensure icon stays above the input */
    pointer-events: auto; /* Make sure clicks register on the icon */
}

/* Style for the icon button */
.password-toggle {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
}

/* Ensure the icon is visible when input is focused */
.form-control:focus + .icon-container .password-toggle {
    color: #6c757d;
    opacity: 1;
}

@media (min-width: 640px) {
    .form-label {
        display: block;
        font-size: 1rem;
    }

    .form-title {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .form-subtitle {
        font-size: 1rem;
        line-height: 1.25rem;
    }

    .form-control {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}
