/* ==========================================
   SCHOOLGRADES SCHOOL REGISTRATION
   A Product of Cybrun Software
========================================== */

:root{

    --primary:#003D99;
    --primary-light:#0058D4;
    --secondary:#00C7A5;

    --dark:#07152E;
    --white:#ffffff;

    --text:#24324B;
    --muted:#6B7280;

    --border:rgba(255,255,255,.12);

    --shadow:
    0 20px 50px rgba(0,0,0,.15);

}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    min-height:100vh;

    background:
    linear-gradient(
        135deg,
        #001E5B,
        #003D99,
        #0058D4
    );

    overflow-x:hidden;

    position:relative;

}

/* ==========================================
   PARTICLES
========================================== */

#particles{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    z-index:0;

    pointer-events:none;

}

/* ==========================================
   BACK BUTTON
========================================== */

.back-btn{

    position:fixed;

    top:25px;
    left:25px;

    z-index:100;

    text-decoration:none;

    color:white;

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 18px;

    border-radius:14px;

    background:
    rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    border:
    1px solid rgba(255,255,255,.1);

    transition:.3s;

}

.back-btn:hover{

    background:
    rgba(255,255,255,.18);

    transform:
    translateY(-2px);

}

/* ==========================================
   WATERMARK
========================================== */

.watermark{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:1;

    pointer-events:none;

}

.watermark img{

    width:600px;

    opacity:.03;

}

/* ==========================================
   WRAPPER
========================================== */

.signup-wrapper{

    position:relative;

    z-index:2;

    width:min(1500px,95%);

    margin:auto;

    min-height:100vh;

    display:grid;

    grid-template-columns:
    420px 1fr;

    gap:40px;

    align-items:center;

    padding:50px 0;

}

/* ==========================================
   SIDE PANEL
========================================== */

.signup-side{

    color:white;

    padding:40px;

}

.brand-logo{

    width:280px;

    max-width:100%;

    margin-bottom:30px;

}

.signup-side h1{

    font-size:3rem;

    line-height:1.1;

    margin-bottom:20px;

}

.signup-side p{

    opacity:.92;

    line-height:1.8;

    margin-bottom:40px;

}

.side-features{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.side-features div{

    display:flex;

    align-items:center;

    gap:12px;

}

.side-features i{

    color:#00C7A5;

}

/* ==========================================
   CARD
========================================== */

.signup-card{

    background:
    rgba(255,255,255,.97);

    border-radius:30px;

    box-shadow:var(--shadow);

    overflow:hidden;

}

.card-header{

    padding:35px;

    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color:white;

}

.card-header h2{

    font-size:2rem;

    margin-bottom:8px;

}

.card-body{

    padding:35px;

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:25px;

}

/* ==========================================
   INPUT GROUPS
========================================== */

.input-group{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.input-group label{

    font-size:.92rem;

    font-weight:600;

    color:var(--text);

}

.input-group input,
.input-group select{

    width:100%;

    height:58px;

    border-radius:16px;

    border:1px solid #DCE4F0;

    outline:none;

    padding:0 18px;

    font-size:15px;

    transition:.3s;

    background:white;

}

.input-group input:focus,
.input-group select:focus{

    border-color:var(--secondary);

    box-shadow:
    0 0 0 4px rgba(0,199,165,.12);

}

/* ==========================================
   DISTRICT SEARCH
========================================== */

#districtSearch{

    margin-bottom:8px;

}

/* ==========================================
   DROPZONE
========================================== */

#badgeDropzone{

    width:100%;

    min-height:260px;

    border-radius:24px;

    border:2px dashed
    rgba(0,199,165,.4);

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    cursor:pointer;

    background:
    linear-gradient(
        135deg,
        rgba(0,199,165,.04),
        rgba(0,61,153,.03)
    );

    transition:.3s;

    overflow:hidden;

}

#badgeDropzone:hover{

    border-color:var(--secondary);

    transform:
    translateY(-3px);

}

.dropzone-content{

    padding:30px;

}

.dropzone-content i{

    font-size:4rem;

    color:var(--secondary);

    margin-bottom:15px;

}

.dropzone-content h4{

    margin-bottom:10px;

}

.dropzone-content p{

    color:var(--muted);

    margin-bottom:5px;

}

.dropzone-content small{

    color:#9CA3AF;

}

#badgePreview{

    display:none;

    width:220px;

    height:220px;

    object-fit:contain;

}

/* ==========================================
   FULL WIDTH ELEMENTS
========================================== */

.input-group:nth-child(2),
.terms-box,
#registerBtn{

    grid-column:
    1 / -1;

}

/* ==========================================
   TERMS BOX
========================================== */

.terms-box{

    padding:18px;

    border-radius:18px;

    background:
    rgba(0,199,165,.08);

    color:var(--text);

    display:flex;

    gap:12px;

    align-items:flex-start;

    line-height:1.7;

}

.terms-box i{

    color:var(--secondary);

    margin-top:3px;

}

/* ==========================================
   REGISTER BUTTON
========================================== */

#registerBtn{

    height:62px;

    border:none;

    border-radius:18px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    color:white;

    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    transition:.3s;

    position:relative;

}

#registerBtn:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 15px 30px rgba(0,61,153,.25);

}

.btn-loader{

    display:none;
}

#registerBtn.loading .btn-text{

    display:none;
}

#registerBtn.loading .btn-loader{

    display:inline-flex;

    align-items:center;

    gap:10px;

}

/* ==========================================
   VALIDATION
========================================== */

.invalid{

    border-color:#EF4444 !important;

    box-shadow:
    0 0 0 4px rgba(239,68,68,.1);

}

/* ==========================================
   TOAST
========================================== */

#toast{

    position:fixed;

    bottom:30px;
    right:30px;

    z-index:9999;

    background:white;

    padding:18px 22px;

    border-radius:16px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.2);

    display:flex;

    align-items:center;

    gap:12px;

    opacity:0;

    visibility:hidden;

    transform:
    translateY(20px);

    transition:.35s;

}

#toast.show{

    opacity:1;

    visibility:visible;

    transform:
    translateY(0);

}

#toast i{

    color:var(--secondary);

}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
        var(--primary),
        var(--secondary)
    );

    border-radius:20px;

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:1200px){

    .signup-wrapper{

        grid-template-columns:1fr;

        gap:20px;

        padding-top:100px;

    }

    .signup-side{

        text-align:center;

    }

    .side-features{

        max-width:500px;

        margin:auto;

    }

}

@media(max-width:768px){

    .card-body{

        grid-template-columns:1fr;

    }

    .signup-side h1{

        font-size:2.2rem;

    }

    .brand-logo{

        width:220px;

    }

    .card-header{

        padding:25px;

    }

    .card-body{

        padding:25px;

    }

    .back-btn{

        top:15px;
        left:15px;

        padding:10px 15px;

    }

    .watermark img{

        width:350px;

    }

}

@media(max-width:480px){

    .signup-side{

        padding:20px;

    }

    .card-header h2{

        font-size:1.5rem;

    }

    #badgeDropzone{

        min-height:220px;

    }

}

/* ==========================================
   SELECT2 SCHOOLGRADES THEME
========================================== */

.select2-container{

    width:100% !important;

}

.select2-container--default
.select2-selection--single{

    height:58px !important;

    border-radius:16px !important;

    border:1px solid #DCE4F0 !important;

    display:flex !important;

    align-items:center !important;

    padding:0 12px !important;

    transition:.3s;

}

.select2-container--default
.select2-selection--single:hover{

    border-color:#00C7A5 !important;

}

.select2-container--default
.select2-selection--single
.select2-selection__rendered{

    line-height:56px !important;

    color:#24324B !important;

    font-size:15px;

}

.select2-container--default
.select2-selection--single
.select2-selection__arrow{

    height:56px !important;

}

.select2-dropdown{

    border-radius:14px !important;

    border:1px solid #DCE4F0 !important;

    overflow:hidden;

    box-shadow:
    0 15px 35px rgba(0,0,0,.08);

}

.select2-search__field{

    height:42px !important;

    border-radius:10px !important;

    border:1px solid #DCE4F0 !important;

    padding:0 12px !important;

}

.select2-results__option{

    padding:10px 15px !important;

}

.select2-results__option--highlighted{

    background:#003D99 !important;

}

.select2-container--default.select2-container--focus
.select2-selection--single{

    border-color:#00C7A5 !important;

    box-shadow:
    0 0 0 4px rgba(0,199,165,.12);

}

/* ==========================================
   SUCCESS OVERLAY
========================================== */

#successOverlay{

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,.75);

    backdrop-filter:blur(15px);

    display:none;

    align-items:center;

    justify-content:center;

    z-index:99999;

    padding:20px;

}

/* ==========================================
   SUCCESS CARD
========================================== */

.success-card{

    width:min(92%,550px);

    max-width:550px;

    background:#fff;

    border-radius:28px;

    padding:30px;

    text-align:center;

    box-shadow:
    0 30px 80px rgba(0,0,0,.35);

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:12px;

    animation:successPop .4s ease;

}

@keyframes successPop{

    from{

        opacity:0;

        transform:
        scale(.85);

    }

    to{

        opacity:1;

        transform:
        scale(1);

    }

}

.success-icon{

    width:90px;

    height:90px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(
        135deg,
        #00C7A5,
        #00E0B8
    );

    color:white;

    font-size:38px;

    box-shadow:
    0 10px 25px rgba(0,199,165,.35);

}

.success-card h1{

    color:#003D99;

    margin-bottom:15px;

    font-size:2rem;

}

.success-message{

    color:#6B7280;

    line-height:1.8;

    margin-bottom:30px;

}

.credential-box{

    text-align:left;

    margin-bottom:10px;

}

.credential-box label{

    display:block;

    font-weight:600;

    color:#24324B;

    margin-bottom:10px;

}

.credential-value{

    height:55px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 15px;

    border-radius:14px;

    background:#F6F9FF;

    border:1px solid #DCE4F0;

}

@media(max-width:768px){

    .success-card{

        width:95%;

        min-height:auto;

        padding:20px;

    }

}



.copy-btn{

    border:none;

    background:none;

    cursor:pointer;

    color:#00C7A5;

    font-size:18px;

}

.security-note{

    margin:5px 0;

    padding:15px;

    border-radius:16px;

    background:
    rgba(0,199,165,.08);

    color:#24324B;

    display:flex;

    gap:12px;

    align-items:flex-start;

    text-align:left;

}

.security-note i{

    color:#00C7A5;

    margin-top:4px;

}

#proceedBtn{

    width:100%;

    height:60px;

    border:none;

    border-radius:17px;

    cursor:pointer;

    color:white;

    font-size:15px;

    font-weight:600;

    background:
    linear-gradient(
        135deg,
        #003D99,
        #00C7A5
    );

    transition:.3s;

}

#proceedBtn:hover{

    transform:
    translateY(-3px);

}

@media(max-width:768px){

    .success-card{

        padding:20px;

    }

    .success-card h1{

        font-size:1.6rem;

    }

    .credential-value span{

        font-size:13px;

    }

}

/* ==========================================
   SUCCESS CREDENTIALS ROW
========================================== */

.credentials-row{

    width:100%;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

    margin:5px 0 10px;

}

.credential-box{

    width:100%;

}

.credential-box label{

    display:block;

    text-align:left;

    margin-bottom:5px;

    font-size:.85rem;

    font-weight:600;

    color:#24324B;

}

.credential-value{

    height:50px;

    border-radius:14px;

    background:#F7FAFF;

    border:1px solid #DCE4F0;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 6px;

}

.credential-value span{

    font-size:14px;

    font-weight:700;

    color:#003D99;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.copy-btn{

    border:none;

    background:none;

    cursor:pointer;

    color:#00C7A5;

    font-size:18px;

    transition:.3s;

}

.copy-btn:hover{

    transform:scale(1.1);

}

@media(max-width:600px){

    .credentials-row{

        grid-template-columns:1fr;

    }

}