* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Raleway', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

@media screen and (min-width: 601px) {
    body, html {
        overflow: hidden;
    }
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
}

.bg-left {
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, #ffe0e9 0%, #fff 70%);
    position: relative;
    overflow: hidden;
}

.bg-right {
    width: 50%;
    height: 100%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.matrix-bg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matrix-img {
    width: 110%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    transform: translateX(-400px);
    opacity: 0.9;
}

.decor-circles {
    position: absolute;
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
    width: 450px;
    opacity: 0.9;
    z-index: 1;
}

.decor-circles img {
    width: 100%;
    display: block;
}

.login-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding-top: 100px;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-link {
    font-family: 'El Messiri', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #052E98;
    text-decoration: none;
    transition: 0.3s;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.auth-container {
    width: auto;
    padding: 20px;
    text-align: center;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 32px;
    color: #052E98;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #5d75a8;
    line-height: 1.5;
    margin-bottom: 30px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    min-width: 180px;
    padding: 12px 0;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #fff;
    color: #aaa;
    font-family: 'El Messiri', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: #ff6b8b;
    color: #fff;
    border-color: #ff6b8b;
    box-shadow: 0 5px 15px rgba(255,107,139,0.4);
}

.auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
}

.input-group input {
    width: 430px;
    height: 45px;
    padding: 0 25px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.form-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 430px;
}

.submit-btn {
    flex-grow: 1;
    height: 45px;
    border-radius: 50px;
    background: #052E98;
    color: #fff;
    border: none;
    font-family: 'El Messiri', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #052E98;
    font-weight: 600;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #87ceeb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-link {
    margin-top: 5px;
    font-size: 13px;
    color: #052E98;
    text-decoration: none;
    font-weight: 600;
}

.mobile-footer-illustration {
    display: none;
}

@media screen and (max-width: 600px) {
    body, html {
        overflow-y: auto !important;
        height: auto !important;
        background: #ffffff;
    }

    .background-layer, .decor-circles, .right-decor-circles {
        display: none !important;
    }

    .login-header {
        position: relative;
        padding-top: 30px;
        padding-bottom: 20px;
        z-index: 25;
        display: flex;
        justify-content: center;
        background: #ffffff;
    }

    .header-content {
        width: 100%;
        max-width: 100%;
        padding: 0 25px;
        display: flex;
        justify-content: space-between;
    }

    .header-link {
        font-size: 16px;
    }

    .login-overlay {
        position: relative !important;
        display: flex !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100%;
        height: auto;
        padding: 10px 20px 20px;
        background: #ffffff;
        z-index: 10;
        box-shadow: none !important;
    }

    .auth-container {
        width: 100%;
        padding: 0;
    }

    .auth-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .input-group,
    .input-group input,
    .form-row-actions {
        width: 100% !important;
    }

    .input-group input {
        height: 50px;
        font-size: 16px;
    }

    .submit-btn {
        width: 100% !important;
        height: 55px !important;
        font-size: 18px !important;
        letter-spacing: 1px;
        display: block;
        margin-bottom: 5px;
    }

    .form-row-actions {
        flex-direction: column !important;
        gap: 25px !important;
    }

    .custom-checkbox {
        justify-content: center;
        width: 100%;
    }

    .mobile-footer-illustration {
        display: flex !important;
        justify-content: center;
        margin-top: 40px;
        width: 100%;
        padding-bottom: 40px;
    }

    .mobile-footer-illustration img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-y: auto !important;
        height: auto !important;
        background: #ffffff;
    }

    .page-header {
        padding: 20px;
        position: relative;
        display: flex;
        justify-content: center;
        background: #ffffff;
        z-index: 25;
    }

    .header-content {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        gap: 10px;
    }

    .fp-decor-left,
    .fp-decor-right,
    .fp-decor-circles {
        display: none !important;
    }

    .fp-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        background: #ffffff;
    }

    .central-content-block {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .mobile-image-container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 40px;
        padding-bottom: 40px;
    }

    .mobile-image-container img {
        max-width: 100%;
        width: 400px;
        height: auto;
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-image-container {
        display: none;
    }
}