*{
    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%);
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    
}
.mindanao-map-bg{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:50vh;
    z-index:0;
    pointer-events:none;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.mindanao-map-bg img{
    width:min(1150px, 96vw);
    height:auto;
    opacity:.58;
}

.mindanao-map-bg::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(16,75,42,.05),
        rgba(16,75,42,.12),
        rgba(16,75,42,.72)
    );
}

.register-card{
    position:relative;
    z-index:2;
}

.background-seal{
    z-index:1;
}
.background-seal {
    position: absolute;
    top: 5%;
    width: 500px;
    height: 500px;
    opacity: 0.15;
    z-index: 1;
    background: var(--background-seal-logo) no-repeat center;
    background-size: contain;
}
.register-card{
    position:relative;
    background:rgba(255, 255, 255, 0.071);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    padding:35px 40px;
    border-radius:10px;
    box-shadow:0 10px 25px rgba(0,0,0,0.22);
    width:100%;
    max-width:450px;
    text-align:center;
    z-index:2;
    border:1px solid rgba(255,255,255,0.55);
    overflow:visible;
}

.logo-container{
    margin-bottom:18px;
}

.logo-container img{
    max-width:180px;
}

.tagline{
    font-size:13px;
    color:#f0eded;
    font-weight:bold;
    margin-bottom:22px;
}

.input-group{
    position:relative;
    margin-bottom:14px;
}

.input-group input{
    width:100%;
    padding:12px 42px 12px 40px;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:14px;
    outline:none;
}

.input-group input:focus{
    border-color:#104b2a;
}

.input-group i{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    color:#666;
    font-style:normal;
}

.toggle-password{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:14px;
}

.register-btn{
    width:100%;
    padding:12px;
    border:none;
    background:#104b2a;
    color:#fff;
    border-radius:4px;
    font-weight:bold;
    cursor:pointer;
    margin-top:4px;
}

.register-btn:hover{
    background:#0b351e;
}

.divider{
    display:flex;
    align-items:center;
    text-align:center;
    margin:20px 0;
    color:#333;
    font-size:14px;
}

.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:10px;
    border:1px solid #ddd;
    background:white;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-weight:500;
    color:#444;
    transition:background 0.3s;
    text-decoration:none;
    font-size:14px;
}

.google-btn:hover{
    background:#f9f9f9;
}

.google-btn img{
    width:18px;
    margin-right:10px;
}

.footer-text{
    margin-top:25px;
    font-size:14px;
    font-weight:500;
}

.footer-text a{
    color:#2daae1;
    text-decoration:none;
    font-weight:bold;
}

.msg-success,
.msg-error{
    padding:10px 12px;
    border-radius:4px;
    margin-bottom:14px;
    font-size:13px;
    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;
}
.social-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:5px;
}

.social-btn{
    height:46px;
    border:1px solid #ddd;
    background:#fff;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    font-weight:600;
    transition:.3s ease;
}

.social-btn:hover{
    background:#f8f8f8;
    transform:translateY(-1px);
}

.social-btn img{
    width:18px;
    height:18px;
}

.apple-btn svg{
    width:17px;
    height:17px;
    color:#111;
}
.register-card-wide{
    max-width:720px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.full-width{
    grid-column:1 / -1;
}

.input-group select{
    width:100%;
    padding:12px 42px 12px 40px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:14px;
    outline:none;
    background:#fff;
    color:#333;
    appearance:none;
    border-radius:10px;
}

.input-group select:focus{
    border-color:#104b2a;
}

.input-group select:disabled{
    background:#f5f5f5;
    cursor:not-allowed;
}
.login-animation{
    position:fixed;
    inset:0;
    background:linear-gradient(135deg, #064e3b, #15803d);
    z-index:9999;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.35s ease;
    color:#fff;
}

.login-animation.show{
    opacity:1;
    visibility:visible;
}

.runner-scene{
    position:relative;
    width:260px;
    height:90px;
    overflow:hidden;
    margin-bottom:18px;
}

.runner{
    position:absolute;
    left:-70px;
    bottom:12px;
    font-size:52px;
    animation:runAcross 1.8s ease-in-out infinite;
}

.papers{
    position:absolute;
    left:-25px;
    bottom:42px;
    display:flex;
    gap:5px;
    animation:papersAcross 1.8s ease-in-out infinite;
}

.papers span{
    font-size:25px;
    animation:paperFloat .55s ease-in-out infinite alternate;
}

.papers span:nth-child(2){
    animation-delay:.15s;
}

.papers span:nth-child(3){
    animation-delay:.3s;
}

.login-animation h3{
    font-size:22px;
    font-weight:800;
    margin-bottom:6px;
}

.login-animation p{
    font-size:13px;
    opacity:.9;
}
.login-links{
    margin-top:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    font-size:14px;
    font-weight:500;
}

.login-links a{
    color:#2daae1;
    text-decoration:none;
    font-weight:bold;
}

.login-links a:hover{
    text-decoration:underline;
}

.login-links .forgot-link{
    color:#104b2a;
}

.login-links span{
    color:#555;
}
/* PAGE OPENING STATE */
body.page-loading .register-card {
    opacity: 0;
    pointer-events: none;
}

/* SPLASH / LOGIN ANIMATION */
.login-animation {
    position: fixed;
    inset: 0;
    background: #eef8f8;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.login-animation.show {
    display: flex;
}

.dms-loader-box {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 18px;
}

.dms-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            #0b8f4d 0deg 125deg,
            #f4c430 125deg 185deg,
            #ffffff 185deg 245deg,
            transparent 245deg 275deg,
            #0b8f4d 275deg 360deg
        );
    animation: dmsSpin 1.1s linear infinite;
    box-shadow: 0 0 20px rgba(11, 143, 77, 0.25);
}

.dms-loader-ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: #eef8f8;
}

.dms-loader-logo {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dms-loader-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.login-animation h3 {
    margin: 5px 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #0b8f4d;
}

.login-animation p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}
/* 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;
}
.otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0;
}

.otp-input {
    width: 46px;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #104b2a;
    outline: none;
}

.otp-input:focus {
    border-color: #104b2a;
    box-shadow: 0 0 0 3px rgba(16, 75, 42, .15);
}
@media(max-width:500px){
    .Registration-ribbon{
        right:12px;
        top:-12px;
        font-size:10.5px;
        padding:7px 14px;
    }
}
@keyframes dmsSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes runAcross{
    0%{
        left:-70px;
        transform:translateY(0);
    }
    50%{
        transform:translateY(-6px);
    }
    100%{
        left:280px;
        transform:translateY(0);
    }
}

@keyframes papersAcross{
    0%{
        left:-25px;
    }
    100%{
        left:310px;
    }
}

@keyframes paperFloat{
    from{
        transform:translateY(0) rotate(-8deg);
    }
    to{
        transform:translateY(-10px) rotate(8deg);
    }
}
@media(max-width:768px){
    body{
        min-height:100vh;
        height:auto;
        padding:20px;
        overflow:auto;
    }

    .register-card-wide{
        max-width:100%;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .full-width{
        grid-column:auto;
    }
}
@media(max-width:500px){
    .social-grid{
        grid-template-columns:1fr;
    }
}
@media(max-width:500px){
    body{
        padding:15px;
        overflow:auto;
    }

    .background-seal{
        width:380px;
        height:380px;
        top:7%;
    }

    .register-card{
        padding:30px 25px;
    }

    .logo-container img{
        max-width:160px;
    }
}