/* =========================================================
   GETACO - REGISTER PAGE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.88),
            rgba(30, 64, 175, 0.90)
        ),
        url("../images/login-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    color: #1e293b;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {

    width: 100%;
    max-width: 1200px;

    min-height: 680px;

    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    display: flex;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);

}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.left {

    flex: 1;

    min-width: 0;

    background:
        linear-gradient(
            rgba(37, 99, 235, 0.82),
            rgba(29, 78, 216, 0.90)
        ),
        url("../images/apartment.jpg");

    background-size: cover;
    background-position: center;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 60px;
}


.overlay {

    width: 100%;
    max-width: 450px;
}


.overlay h1 {

    font-size: 55px;

    line-height: 1;

    margin-bottom: 18px;

    font-weight: 700;
}


.overlay h2 {

    font-size: 30px;

    line-height: 1.3;

    margin-bottom: 20px;

    font-weight: 600;
}


.overlay p {

    font-size: 15px;

    line-height: 1.8;

    opacity: 0.92;

    margin-bottom: 30px;
}


.overlay ul {

    list-style: none;
}


.overlay li {

    margin-bottom: 14px;

    font-size: 16px;

    display: flex;

    align-items: center;

    gap: 8px;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.right {

    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f8fafc;

    padding: 35px;
}


/* =========================================================
   REGISTER CARD
   ========================================================= */

.register-card {

    width: 100%;

    max-width: 500px;

    background: #ffffff;

    border-radius: 20px;

    padding: 38px 40px;

    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.07);

    border: 1px solid #eef2f7;
}


.register-card h2 {

    font-size: 30px;

    line-height: 1.2;

    color: #0f172a;

    font-weight: 700;

    margin-bottom: 7px;

    text-align: center;
}


.subtitle {

    color: #64748b;

    font-size: 13px;

    text-align: center;

    margin-bottom: 28px;
}


/* =========================================================
   FORM
   ========================================================= */

#registerForm {

    width: 100%;
}


.input-group {

    width: 100%;

    margin-bottom: 17px;
}


.input-group label {

    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 13px;

    font-weight: 500;
}


.input-group input {

    width: 100%;

    height: 48px;

    border: 1px solid #dbe3ec;

    border-radius: 10px;

    background: #ffffff;

    padding: 0 14px;

    color: #1e293b;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-group input::placeholder {

    color: #94a3b8;
}


.input-group input:hover {

    border-color: #cbd5e1;
}


.input-group input:focus {

    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   FIRST / LAST NAME
   ========================================================= */

.row {

    width: 100%;

    display: flex;

    gap: 14px;
}


.row .input-group {

    flex: 1;

    min-width: 0;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-box {

    position: relative;

    width: 100%;
}


.password-box input {

    padding-right: 45px;
}


.eye-btn {

    position: absolute;

    top: 50%;
    right: 11px;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    padding: 0;

    margin: 0;

    cursor: pointer;

    font-size: 16px;

    color: #64748b;

    border-radius: 6px;

    transition: background 0.2s ease;
}


.eye-btn:hover {

    background: #f1f5f9;
}


/* =========================================================
   POLICY AGREEMENT
   ========================================================= */

.policy-agreement {

    width: 100%;

    margin: 17px 0 20px;

    font-size: 12px;

    color: #64748b;
}


.policy-agreement label {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    line-height: 1.5;

    cursor: pointer;
}


.policy-agreement input {

    flex: 0 0 auto;

    width: 15px;
    height: 15px;

    margin: 2px 0 0;

    padding: 0;

    accent-color: #2563eb;

    cursor: pointer;
}


.policy-link {

    border: none;

    background: none;

    padding: 0;

    margin: 0;

    color: #2563eb;

    font: inherit;

    font-weight: 600;

    cursor: pointer;
}


.policy-link:hover {

    text-decoration: underline;
}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.register-btn {

    width: 100%;

    height: 48px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    margin: 0;

    padding: 0;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.register-btn:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.25);
}


.register-btn:active {

    transform: translateY(0);

}


/* =========================================================
   DIVIDER
   ========================================================= */

.divider {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 23px 0 18px;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 500;
}


.divider::before,
.divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}


.divider span {

    flex: 0 0 auto;
}


/* =========================================================
   LOGIN LINK
   ========================================================= */

.login-link {

    display: block;

    width: 100%;

    text-align: center;

    color: #2563eb;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: color 0.2s ease;
}


.login-link:hover {

    color: #1d4ed8;

    text-decoration: underline;
}


/* =========================================================
   POLICY MODAL
   ========================================================= */

.policy-modal {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(15, 23, 42, 0.60);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 18px;

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);
}


.policy-card {

    position: relative;

    width: 100%;

    max-width: 620px;

    max-height: 88vh;

    background: #ffffff;

    border-radius: 18px;

    padding: 28px;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}


.policy-card h2 {

    color: #0f172a;

    font-size: 23px;

    font-weight: 700;

    text-align: center;

    margin: 0 35px 18px;
}


.policy-content {

    flex: 1;

    overflow-y: auto;

    max-height: 60vh;

    padding: 0 5px 0 0;

    margin-bottom: 18px;

    color: #475569;

    font-size: 13px;

    line-height: 1.7;

    scrollbar-width: thin;
}


.policy-content h3 {

    color: #1e293b;

    font-size: 14px;

    font-weight: 600;

    margin: 18px 0 6px;
}


.policy-content h3:first-child {

    margin-top: 0;
}


.policy-content p {

    margin: 0 0 10px;
}


.policy-content strong {

    color: #1e293b;

}


/* =========================================================
   CLOSE POLICY
   ========================================================= */

.close-policy {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    color: #475569;

    font-size: 15px;

    line-height: 1;

    padding: 0;

    margin: 0;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.close-policy:hover {

    background: #e2e8f0;

    color: #0f172a;
}


/* =========================================================
   AGREE BUTTON
   ========================================================= */

.agree-policy-btn {

    width: 100%;

    height: 46px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    padding: 0;

    margin: 0;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.agree-policy-btn:hover {

    background: #1d4ed8;

    transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    body {

        padding: 20px 15px;

        align-items: flex-start;

        overflow-y: auto;
    }


    .container {

        max-width: 600px;

        min-height: auto;

        height: auto;

        flex-direction: column;

        border-radius: 20px;

        margin: 20px auto;
    }


    .left {

        display: none;
    }


    .right {

        width: 100%;

        padding: 25px 18px;

        background: #f8fafc;
    }


    .register-card {

        max-width: 500px;

        padding: 32px 30px;

        border-radius: 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {

        padding: 0;

        background: #f8fafc;

        align-items: flex-start;
    }


    .container {

        width: 100%;

        max-width: none;

        min-height: 100vh;

        margin: 0;

        border-radius: 0;

        box-shadow: none;

        background: #f8fafc;
    }


    .right {

        width: 100%;

        min-height: 100vh;

        padding: 20px 12px;

        align-items: flex-start;

        background: #f8fafc;
    }


    .register-card {

        width: 100%;

        max-width: 430px;

        margin: 0 auto;

        padding: 25px 18px;

        border-radius: 16px;

        box-shadow:
            0 8px 30px rgba(15, 23, 42, 0.06);
    }


    .register-card h2 {

        font-size: 25px;

        margin-bottom: 6px;
    }


    .subtitle {

        font-size: 12px;

        margin-bottom: 23px;
    }


    .row {

        flex-direction: column;

        gap: 0;
    }


    .input-group {

        margin-bottom: 15px;
    }


    .input-group label {

        font-size: 12px;

        margin-bottom: 6px;
    }


    .input-group input {

        height: 46px;

        font-size: 13px;

        border-radius: 9px;
    }


    .register-btn {

        height: 46px;

        font-size: 13px;
    }


    .policy-agreement {

        font-size: 11px;

        margin: 15px 0 18px;
    }


    .divider {

        margin: 20px 0 16px;
    }


    .login-link {

        font-size: 12px;
    }


    /* POLICY MODAL */

    .policy-modal {

        padding: 10px;
    }


    .policy-card {

        width: 100%;

        max-width: none;

        max-height: calc(100vh - 20px);

        max-height: calc(100dvh - 20px);

        padding: 22px 16px 16px;

        border-radius: 14px;
    }


    .policy-card h2 {

        font-size: 19px;

        margin: 0 35px 14px;
    }


    .policy-content {

        max-height: none;

        font-size: 12px;

        line-height: 1.6;

        padding-right: 4px;

        margin-bottom: 14px;
    }


    .policy-content h3 {

        font-size: 13px;

        margin-top: 15px;
    }


    .policy-content p {

        margin-bottom: 8px;
    }


    .close-policy {

        top: 10px;

        right: 10px;

        width: 30px;
        height: 30px;

        font-size: 13px;
    }


    .agree-policy-btn {

        height: 44px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .right {

        padding: 12px 8px;
    }


    .register-card {

        padding: 22px 14px;

        border-radius: 14px;
    }


    .register-card h2 {

        font-size: 23px;
    }


    .subtitle {

        margin-bottom: 20px;
    }


    .input-group input {

        height: 44px;
    }


    .register-btn {

        height: 44px;
    }

}