body { margin: 0; padding: 0; box-sizing: border-box; }
section { overflow: hidden; }

/* Notification */
#notification-container {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.notification {
    padding: 12px 20px; border-radius: 8px; min-width: 280px;
    display: flex; align-items: center; gap: 12px;
    font-family: Urbanist, sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: 0.5px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: slideInDown 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition: all 0.3s ease; pointer-events: auto; cursor: pointer; text-transform: uppercase;
}
@keyframes slideInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
.notification.success { background: rgb(66,74,61); color: #fff; border-left: 4px solid #2ecc71; }
.notification.error   { background: #fff; color: #c0392b; border-left: 4px solid #c0392b; }
.notification.warning { background: #fff; color: #e67e22; border-left: 4px solid #e67e22; }
.notification.info    { background: rgb(66,74,61); color: #fff; border-left: 4px solid #3498db; }
.notification i { font-size: 16px; }

.registerWrp { height: 100vh; }
.registerOverlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,.22); top: 0; left: 0;
}
.registerBackground { width: 100%; height: auto; display: block; }
.registerFormWrp {
    position: absolute; width: 75%; height: fit-content; max-height: 600px;
    left: 50%; top: 48%; transform: translate(-50%,-50%);
}
.registerFormCont { width: 100%; height: 100%; display: flex; justify-content: end; }
.registerFormPart {
    width: 100%; max-width: 500px; height: 100%;
    background: rgba(255,255,255,.8); border-radius: 16px; padding: 20px 0;
}
.registerFormSubPart {
    height: 100%; padding: 0 25px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.registerFormSingle {
    width: 100%; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.registerFormSingle h1 {
    color: rgb(66,74,61); font-family: Montserrat, sans-serif;
    font-size: 36px; margin: 0;
}
.registerFormSingle p {
    margin: 10px 0 20px 0; font-family: Urbanist, sans-serif;
    color: #000; line-height: 24px;
}

/* Input */
.registerInputCont {
    position: relative; width: 100%; max-width: 400px;
    font-family: Urbanist, sans-serif;
}
.registerInputSingle {
    width: calc(100% - 90px); height: 40px;
    padding: 8px 45px 8px 45px;
    font-family: Urbanist, sans-serif; font-size: 18px;
    border: none; background: #f1f1f1; border-radius: 3px; margin-top: 10px;
}
.registerInputIcon { position: absolute; }
.emailIcon { top: 27px; left: 15px; }
.passwordIcon { top: 25px; left: 15px; }
.inputShowPassword { position: absolute; cursor: pointer; right: 36px; top: 15.9px; }
.inputCharCounter {
    width: 30px; height: 30px; position: absolute; right: 8px; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #666;
}
.inputWarning {
    display: none; margin: 0 0 0 10px !important;
    color: red !important; font-size: 14px; text-align: left;
    width: 100%; max-width: 400px;
}
.inputRulesMark { position: absolute; top: 20px; right: 14px; cursor: pointer; }
.inputExclamationCont {
    display: none; border: 1px solid #fff; padding: 10px; text-align: left;
    position: absolute; min-width: 250px; top: 0; right: 0;
    background: rgb(66,74,61); z-index: 100; border-radius: 16px;
}
.inputExclamationCont p { margin: 0; font-size: 14px; line-height: 14px; color: #fff; }

/* Checkbox */
.registerCheckboxCont {
    text-align: left; font-size: 14px; height: 30px; line-height: 30px;
    display: flex; align-items: center; font-family: Urbanist, sans-serif;
    width: 100%; max-width: 400px;
}
.registerCheckboxCont input { accent-color: #424A3D; cursor: pointer; margin-right: 5px; }
.registerCheckboxCont a { color: inherit; }

/* Submit button */
.registerSubmitBtn {
    margin-top: 16px; min-width: 166px; cursor: pointer; font-weight: 600;
    padding: 10px 15px; display: block; width: auto; white-space: nowrap;
    border: 3px solid #fff; border-radius: 10px; font-size: 20px;
    font-family: Montserrat, sans-serif; color: #fff;
    text-transform: uppercase; background: rgb(66,74,61);
    transition: all .2s ease-in-out;
}
.registerSubmitBtn:hover { border: 3px solid rgb(66,74,61); color: rgb(66,74,61); background: #fff; }
.registerSubmitBtn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Branding — only visible on mobile */
.loginBranding {
    display: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    section {
        overflow-y: auto;
    }

    .registerWrp {
        height: 100vh;
        min-height: 100svh;
        overflow: hidden;
    }

    .registerBackground {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 38vh;
        object-fit: cover;
        object-position: center top;
    }

    .registerOverlay {
        height: 38vh;
    }

    .registerFormWrp {
        position: absolute;
        top: 30vh; left: 0; right: 0; bottom: 0;
        width: 100%; max-height: none;
        transform: none; padding: 0;
    }

    .registerFormCont {
        height: 100%;
        justify-content: center;
    }

    .registerFormPart {
        width: 100%; max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 28px 0 32px;
        background: rgba(255, 255, 255, 0.98);
        min-height: 100%;
        display: flex; flex-direction: column;
    }

    .registerFormSubPart {
        flex: 1;
        padding: 0 24px;
    }

    .registerFormSingle h1 {
        font-size: 24px;
    }

    .registerFormSingle p {
        font-size: 14px;
        margin: 8px 0 14px;
    }

    .registerInputCont {
        max-width: 100%;
    }

    .inputWarning {
        max-width: 100%;
    }

    .registerSubmitBtn {
        width: 100%;
        max-width: none;
    }

    .registerCheckboxCont {
        height: auto;
        align-items: flex-start;
        line-height: 1.5;
        padding: 4px 0;
        font-size: 13px;
    }

    .registerCheckboxCont input {
        margin-top: 4px;
        flex-shrink: 0;
    }

    .registerCheckboxCont a {
        white-space: nowrap;
    }

    .loginBranding {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 16px 24px 28px;
    }

    .loginBrandingLogo {
        width: 44px; height: 44px;
        object-fit: contain;
        border-radius: 10px;
    }

    .loginBrandingText {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .loginBrandingName {
        font-family: Montserrat, sans-serif;
        font-size: 16px; font-weight: 700;
        color: rgb(66, 74, 61);
        line-height: 1.2;
    }

    .loginBrandingTagline {
        font-family: Urbanist, sans-serif;
        font-size: 13px;
        color: #999;
        line-height: 1.2;
    }
}

/* Error state */
.errorFormSingle {
    width: 100%; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.errorFormSingle i { font-size: 48px; color: #c0392b; }
.errorFormSingle h2 {
    font-family: Montserrat, sans-serif; color: rgb(66,74,61);
    font-size: 22px; margin: 0;
}
.errorFormSingle p {
    font-family: Urbanist, sans-serif; color: #555;
    font-size: 14px; line-height: 1.6; margin: 0;
}
.errorFormSingle a {
    font-family: Montserrat, sans-serif; font-size: 14px; font-weight: 700;
    color: rgb(66,74,61); text-decoration: none; text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 2px solid rgb(66,74,61); padding-bottom: 2px;
}
