*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background:linear-gradient(to bottom, #104b2a 50%, #ffffff 50%);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow-y:auto;
    overflow-x:hidden;
    padding:20px;
}

.background-seal{
    position:absolute;
    top:6%;
    width:600px;
    height:600px;
    opacity:0.12;
    z-index:1;
    background:var(--background-seal-logo, url("../img/logo.png")) no-repeat center;
    background-size:contain;
}

.register-card{
    background:white;
    padding:24px 26px;
    border-radius:8px;
    box-shadow:0 8px 18px rgba(0,0,0,0.18);
    width:100%;
    max-width:600px;
    text-align:center;
    z-index:2;
    position:relative;
}

.register-card-wide{
    max-width:600px;
}

.logo-container{
    margin-bottom:12px;
}

.logo-container img{
    max-width:150px;
}

.tagline{
    font-size:12px;
    color:#333;
    font-weight:600;
    margin-bottom:16px;
}

/* GRID */
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.full-width{
    grid-column:1 / -1;
}

/* INPUT GROUP */
.input-group{
    position:relative;
    margin-bottom:10px;
    min-width:0;
}

.input-group input,
.input-group select{
    width:100%;
    height:38px;
    padding:10px 36px 10px 34px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:12.5px;
    outline:none;
    background:#fff;
    color:#333;
}

.input-group input:focus,
.input-group select:focus{
    border-color:#104b2a;
    box-shadow:0 0 0 3px rgba(16,75,42,.12);
}

.input-group i{
    position:absolute;
    left:10px;
    top:50%;
    transform:translateY(-50%);
    color:#666;
    font-style:normal;
    font-size:12px;
    z-index:5;
    pointer-events:none;
}

.toggle-password{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:12px;
    z-index:6;
}

/* SELECT2 UNIFORM DESIGN */
.input-group .select2-container{
    width:100% !important;
    display:block;
}

.input-group .select2-container--default .select2-selection--single{
    height:38px !important;
    min-height:38px !important;
    border:1px solid #ccc !important;
    border-radius:8px !important;
    background:#fff !important;
    display:flex !important;
    align-items:center !important;
    padding-left:28px !important;
    outline:none !important;
}

.input-group .select2-container--default.select2-container--focus .select2-selection--single,
.input-group .select2-container--default.select2-container--open .select2-selection--single{
    border-color:#104b2a !important;
    box-shadow:0 0 0 3px rgba(16,75,42,.12) !important;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__rendered{
    color:#333 !important;
    font-size:12.5px !important;
    line-height:38px !important;
    padding-left:0 !important;
    padding-right:28px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:100% !important;
    display:block !important;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__placeholder{
    color:#777 !important;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__arrow{
    height:38px !important;
    right:8px !important;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__clear{
    height:38px !important;
    margin-right:18px !important;
    color:#777 !important;
    font-size:16px !important;
}

.input-group .select2-container--default.select2-container--disabled .select2-selection--single{
    background:#f5f5f5 !important;
    cursor:not-allowed !important;
}

.select2-dropdown{
    border:1px solid #ccc !important;
    border-radius:8px !important;
    overflow:hidden !important;
}

.select2-search--dropdown{
    padding:8px !important;
}

.select2-search--dropdown .select2-search__field{
    border:1px solid #ccc !important;
    border-radius:6px !important;
    padding:8px 10px !important;
    font-size:12.5px !important;
    outline:none !important;
}

.select2-search--dropdown .select2-search__field:focus{
    border-color:#104b2a !important;
}

.select2-results__option{
    white-space:normal !important;
    word-break:break-word !important;
    font-size:12.5px !important;
    padding:8px 10px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background:#104b2a !important;
    color:#fff !important;
}

.select2-container--default .select2-results__option--selected{
    background:#e8f3ed !important;
    color:#104b2a !important;
}

/* PASSWORD CHECKLIST */
.password-field-wrapper{
    width:100%;
    min-width:0;
}

.password-field-wrapper .input-group{
    margin-bottom:0;
}

.password-checklist{
    margin-top:8px;
    padding:10px 12px;
    border:1px solid rgba(15,123,58,.14);
    background:#f8fffb;
    border-radius:12px;
    display:none;
    grid-template-columns:repeat(2, 1fr);
    gap:7px 12px;
    text-align:left;
}

.password-checklist.show{
    display:grid;
}

.password-checklist.single{
    grid-template-columns:1fr;
}

.password-rule{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:11.5px;
    font-weight:700;
    color:#dc2626;
    transition:.2s ease;
    line-height:1.3;
}

.password-rule i{
    font-size:13px;
    color:#dc2626;
    transition:.2s ease;
}

.password-rule.valid{
    color:#0f7b3a;
}

.password-rule.valid i{
    color:#0f7b3a;
}

.input-group.password-valid input{
    border-color:#0f7b3a !important;
    box-shadow:0 0 0 3px rgba(15,123,58,.12);
}

.input-group.password-invalid input{
    border-color:#dc2626 !important;
    box-shadow:0 0 0 3px rgba(220,38,38,.10);
}

/* BUTTON */
.register-btn{
    width:100%;
    padding:10px;
    border:none;
    background:#104b2a;
    color:#fff;
    border-radius:4px;
    font-weight:600;
    font-size:12.5px;
    cursor:pointer;
    margin-top:3px;
}

.register-btn:hover{
    background:#0b351e;
}

.register-btn:disabled{
    opacity:.75;
    cursor:not-allowed;
}

/* MESSAGES */
.msg-success,
.msg-error{
    padding:8px 10px;
    border-radius:4px;
    margin-bottom:10px;
    font-size:12px;
    font-weight:600;
    text-align:left;
}

.msg-success{
    background:#ecfdf3;
    color:#067647;
    border:1px solid #abefc6;
}

.msg-error{
    background:#fff1f1;
    color:#b42318;
    border:1px solid #f3b3b3;
}

/* PRIVACY */
.privacy-consent{
    margin:12px 0 10px;
    padding:10px 12px;
    background:#f6fbf8;
    border:1px solid #d9eadf;
    border-radius:10px;
}

.privacy-consent label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:12.5px;
    font-weight:600;
    text-align:left;
}

.privacy-consent input{
    width:16px;
    height:16px;
    flex:0 0 16px;
    margin-top:3px;
}

.privacy-link{
    background:none;
    border:none;
    color:#0f6b35;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    padding:0;
    text-decoration:underline;
    transition:all .3s ease;
}

.privacy-link:hover{
    color:#0a4f27;
    text-decoration:none;
}

.privacy-link:focus{
    outline:none;
}

.privacy-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.privacy-modal.show{
    display:flex;
}

.privacy-modal-box{
    width:100%;
    max-width:620px;
    background:#fff;
    border-radius:14px;
    box-shadow:0 20px 45px rgba(0,0,0,.35);
    overflow:hidden;
    animation:privacyPop .25s ease;
}

.privacy-modal-header{
    background:#104b2a;
    color:#fff;
    padding:18px 22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.privacy-modal-header h2,
.privacy-modal-header h3{
    font-size:20px;
    margin:0;
}

.privacy-modal-header button{
    border:none;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:18px;
    width:36px;
    height:36px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s ease;
}

.privacy-modal-header button:hover{
    background:rgba(255,255,255,.25);
    transform:rotate(90deg);
}

.privacy-modal-header button i{
    line-height:1;
}

.privacy-modal-body{
    padding:22px;
    max-height:360px;
    overflow-y:auto;
    text-align:left;
}

.privacy-modal-body p{
    font-size:14px;
    line-height:1.7;
    color:#333;
    margin-bottom:14px;
}

.privacy-modal-footer{
    padding:16px 22px;
    border-top:1px solid #eee;
    text-align:right;
}

.privacy-accept-btn{
    border:none;
    background:#104b2a;
    color:#fff;
    padding:11px 18px;
    border-radius:8px;
    font-weight:800;
    cursor:pointer;
}

.privacy-accept-btn:hover{
    background:#0b351e;
}

/* LOGIN LINKS */
.login-links{
    margin-top:14px;
    font-size:12px;
    font-weight:500;
}

.login-links a{
    color:#104b2a;
    text-decoration:none;
    font-weight:800;
}

.login-links a:hover{
    text-decoration:underline;
}

/* OPTIONAL OLD SOCIAL STYLE */
.divider{
    display:flex;
    align-items:center;
    text-align:center;
    margin:14px 0;
    color:#333;
    font-size:12px;
}

.divider::before,
.divider::after{
    content:'';
    flex:1;
    border-bottom:1px dashed #ccc;
}

.divider:not(:empty)::before{
    margin-right:.5em;
}

.divider:not(:empty)::after{
    margin-left:.5em;
}

.google-btn{
    width:100%;
    padding:8px;
    border:1px solid #ddd;
    background:white;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-weight:500;
    color:#444;
    text-decoration:none;
    font-size:12px;
}

.google-btn img{
    width:16px;
    margin-right:8px;
}

.social-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:5px;
}

.social-btn{
    height:40px;
    border:1px solid #ddd;
    background:#fff;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    color:#333;
    font-size:12px;
    font-weight:600;
}

.social-btn img{
    width:16px;
    height:16px;
}

.footer-text{
    margin-top:16px;
    font-size:12px;
    font-weight:500;
}

.footer-text a{
    color:#2daae1;
    text-decoration:none;
    font-weight:bold;
}
/* REGISTRATION RIBBON */
.register-card{
    position:relative;
    overflow:visible;
}

.Registration-ribbon{
    position:absolute;
    top:-14px;
    right:18px;
    background:linear-gradient(135deg, #ffd700, #f5b301, #d99a00);
    color:#104b2a;
    padding:8px 18px;
    border-radius:0 0 10px 10px;
    font-size:12px;
    font-weight:900;
    letter-spacing:.4px;
    text-transform:uppercase;
    box-shadow:0 8px 18px rgba(217,154,0,.35);
    z-index:10;
}

.Registration-ribbon::before{
    content:"";
    position:absolute;
    top:0;
    left:-12px;
    width:0;
    height:0;
    border-top:14px solid transparent;
    border-right:12px solid #b87900;
}

.Registration-ribbon::after{
    content:"";
    position:absolute;
    top:0;
    right:-12px;
    width:0;
    height:0;
    border-top:14px solid transparent;
    border-left:12px solid #b87900;
}

@media(max-width:500px){
    .Registration-ribbon{
        right:12px;
        top:-12px;
        font-size:10.5px;
        padding:7px 14px;
    }
}
/* ANIMATION */
@keyframes privacyPop{
    from{
        transform:scale(.95);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

@keyframes runAcross{
    0%{
        left:-70px;
        transform:translateY(0);
    }
    50%{
        transform:translateY(-6px);
    }
    100%{
        left:280px;
        transform:translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width:768px){
    body{
        align-items:flex-start;
        padding:15px;
    }

    .register-card{
        max-width:100%;
    }

    .form-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:600px){
    .password-checklist{
        grid-template-columns:1fr;
    }
}

@media(max-width:500px){
    .background-seal{
        width:320px;
        height:320px;
    }

    .logo-container img{
        max-width:130px;
    }

    .social-grid{
        grid-template-columns:1fr;
    }

    .register-card{
        padding:20px 18px;
    }
}