@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:'Inter',sans-serif;
    min-height:100vh;
    background:linear-gradient(135deg,#0F172A,#1E3A8A,#2563EB);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px 20px;
}
.register-container{
    width:760px;
    max-width:100%;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:24px;
    padding:45px;
    box-shadow:0 25px 60px rgba(0,0,0,.25);
    animation:fadeUp .7s ease;
}
.register-header{
    text-align:center;
    margin-bottom:40px;
}
.register-header img{
    width:150px;
    margin-bottom:20px;
}
.register-header h1{
    color:#fff;
    font-size:34px;
    font-weight:700;
    margin-bottom:12px;
}
.register-header p{
    color:rgba(255,255,255,.85);
    font-size:15px;
    line-height:1.7;
}
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}
.form-group{
    display:flex;
    flex-direction:column;
}
.form-group label{
    color:#fff;
    margin-bottom:10px;
    font-weight:600;
    font-size:14px;
}
.optional{
    color:#D1D5DB;
}
.input-box{
    position:relative;
}
.input-box i:first-child{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#64748B;
    font-size:16px;
}
.input-box .fa-eye,.input-box .fa-eye-slash{
    cursor:pointer;
    left:-18px !important;
}
.input-box input{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    background:#fff;
    padding-left:52px;
    padding-right: 39px;
    font-size:15px;
    transition:.3s;
}
.full-width{
    grid-column:1 / -1;
}
.input-box input:focus{
    outline:none;
    box-shadow:0 0 0 4px rgba(59,130,246,.25);
}
.form-group.role {
    grid-column: 1 / -1;
}

.role-fieldset {
    width: 100%;
    min-width: 0;
    border: 0;
}

.role-fieldset legend {
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}


.roles-radios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.role-option {
    position: relative;
    display: block;
    min-width: 0;
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease,
                transform .2s ease, box-shadow .2s ease;
}

.role-option:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .65);
    transform: translateY(-2px);
}

.role-option:has(input:checked) {
    background: rgba(255, 255, 255, .16);
    border: 2px solid #7dd3fc;
    padding: 17px 13px;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, .12);
}

.role-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.role-option:focus-within {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}

.role-option-content {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #7dd3fc;
    font-size: 19px;
}

.role-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.role-text strong {
    color: #fff;
    font-size: 14px;
}

.role-text small {
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    line-height: 1.6;
}

.role-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    color: transparent;
    font-size: 10px;
}

.role-option:has(input:checked) .role-check {
    background: #7dd3fc;
    border-color: #7dd3fc;
    color: #0f172a;
}

.operating-area-search {
    position: relative;
    width: 100%;
}

.operating-area-search .location_search {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce3e9;
    border-radius: 7px;
    outline: none;
}

.operating-area-search .location_search:focus {
    border-color: #168653;
}

.operating-area-search .location_results {
    display: none;
    position: absolute;
    top: 100;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.operating-area-search .location-result {
    padding: 11px 13px;
    cursor: pointer;
    font-size: 13px;
}

.operating-area-search .location-result:hover {
    background: #f0fdf4;
    color: #168653 !important;
}

.operating-area-search .selected-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.operating-area-search .selected-location {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #e9f7ef;
    color: #168653 !important;
    font-size: 12px;
    font-weight: 600;
}

.operating-area-search .remove-location {
    border: none;
    background: transparent;
    color: #168653 !important;
    font-size: 18px;
    cursor: pointer;
}

.operating-area-search .remove-location:hover {
    color: #dc2626 !important;
}

.operating-area-search .no-location {
    padding: 12px;
    color: #64748b !important;
    font-size: 13px;
}

.password-box .toggle-password{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:none;
    cursor:pointer;
    color:#64748B;
    font-size:17px;
}
.terms-box{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:35px;
    margin-bottom:35px;
    color:#fff;
}
.terms-box input{
    width:18px;
    height:18px;
    accent-color:#2563EB;
}
.terms-box a{
    color:#38BDF8;
    font-weight:600;
    text-decoration:none;
}
.terms-box a:hover{
    text-decoration:underline;
}
#register-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:15px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color:#fff;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.35s;
}
#register-btn i{
    margin-right:10px;
}
#register-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 35px rgba(37,99,235,.35);
}
.login-link{
    margin-top:35px;
    text-align:center;
    color:#fff;
}
.login-link a{
    color:#38BDF8;
    text-decoration:none;
    font-weight:700;
}
.login-link a:hover{
    text-decoration:underline;
}
.alert-success, #alert-success{
    background:#DCFCE7;
    color:#166534;
    padding:14px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:14px;
}
.alert-error{
    background:#FEE2E2;
    color:#991B1B;
    padding:14px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:14px;
}
.errorlist{
    list-style:none;
    margin-top:8px;
    background:#FEE2E2;
    color:#991B1B;
    font-size:13px;
    padding:14px;
    border-radius:12px;
}

.verification-help {
    margin-top: 28px;
    padding: 18px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
}

.verification-help p {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
}

.verification-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #7DD3FC;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.verification-help a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.resend-email-link{
    display:block;
    margin-top:10px;
    color:#38BDF8;
    text-decoration:none;
    font-weight:700;
}
#terms-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: termsOverlay .25s ease;
}

.terms-content {
    position: relative;
    width: 900px;
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .25),
        0 10px 30px rgba(15, 23, 42, .12);
    overflow: hidden;
    animation: termsModal .35s ease;
}

.terms-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 30px 35px 25px;
    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #ffffff 60%,
            #eff6ff 100%
        );
    }

.terms-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.terms-header h2 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.terms-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

#times {
    position: relative;
    top: auto;
    right: auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    font-size: 17px;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

#times:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: rotate(90deg);
}


.terms-divider {
    height: 1px;
    background: #e2e8f0;
}

.terms-body {
    padding: 10px 35px 25px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}


.terms-body::-webkit-scrollbar {
    width: 7px;
}

.terms-body::-webkit-scrollbar-track {
    background: transparent;
}

.terms-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.terms-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.terms-section {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid #eef2f7;
}

.terms-section:last-of-type {
    border-bottom: none;
}


.terms-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}


.terms-section h3 {
    margin: 1px 0 9px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
}

.terms-section p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.terms-section ul {
    margin: 13px 0 0;
    padding-left: 19px;
    color: #64748b;
}

.terms-section li {
    margin-bottom: 7px;
    font-size: 13.5px;
    line-height: 1.65;
}

.terms-section li::marker {
    color: #2563eb;
}

.terms-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s ease;
}

.terms-contact:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.terms-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 17px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
    color: #1e40af;
}

.terms-notice i {
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 16px;
}

.terms-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.terms-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 35px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12px;
}

.terms-close-btn {
    border: none;
    padding: 10px 22px;
    border-radius: 9px;
    background: #0f172a;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.terms-close-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}


@keyframes termsOverlay {
    from {
        pacity: 0;
    }


    to {
        opacity: 1;
    }


}

@keyframes termsModal {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
        }


    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}
.privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    align-items: center;
    justify-content: center;
}

.privacy-modal.active {
    display: flex;
}

.privacy-modal-box {
    width: 900px;
    max-height: 88vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid #edf0f4;
}

.privacy-modal-header span {
    color: #087cf5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.privacy-modal-header h2 {
    margin: 4px 0 0;
    color: #172033;
    font-size: 23px;
}

.privacy-modal-header button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.privacy-modal-body {
    max-height: 65vh;
    padding: 25px 26px;
    overflow-y: auto;
}

.privacy-intro {
    margin: 0 0 24px !important;
    padding: 15px 17px;
    border-left: 4px solid #087cf5;
    border-radius: 7px;
    background: #f3f8ff;
    color: #475467;
    font-size: 14px;
    line-height: 1.7;
}

.privacy-modal-body section {
    margin-bottom: 19px;
    padding-bottom: 19px;
    border-bottom: 1px solid #edf0f4;
}

.privacy-modal-body section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.privacy-modal-body h3 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 16px;
}

.privacy-modal-body p {
    margin: 0 0 7px;
    color: #596579;
    font-size: 13.5px;
    line-height: 1.7;
}

.privacy-modal-body p:last-of-type {
    margin-bottom: 0;
}

.privacy-modal-body a {
    color: #087cf5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.privacy-modal-footer {
    padding: 18px 35px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}


@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
@media (max-width:1024px){
    body{
        padding:20px;
        align-items:flex-start;
    }
    .register-container{
        width:100%;
        padding:30px 20px;
        border-radius:18px;
        margin:20px 0;
    }
    .register-header img{
        width:233px;
        height: 197px;
        margin-bottom: -50px;
        margin-top: -50px;
    }
    .register-header h1{
        font-size:28px;
    }
    .form-grid{
        grid-template-columns:1fr;
        gap:20px;
    }
    .input-box input{
        height:54px;
    }
    .terms-box{
        align-items:flex-start;
    }
    .terms-content{
        width:100%;
        padding:20px;
        border-radius:12px;
    }
    .roles-radios {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .role-option {
        padding: 14px;
    }

    .role-option:has(input:checked) {
        padding: 13px;
    }

    .role-option-content {
        flex-direction: row;
        align-items: center;
        gap: 13px;
    }

    .role-icon {
        flex-shrink: 0;
    }

    .role-text {
        padding-right: 20px;
    }

    #terms-popup {
        padding: 12px;
    }

    .terms-content {
        max-height: 94vh;
        border-radius: 17px;
    }

    .terms-header {
        padding: 22px 20px 18px;
    }

    .terms-header h2 {
        font-size: 22px;
    }

    .terms-header p {
        font-size: 12.5px;
        padding-right: 10px;
    }

    #times {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .terms-body {
        padding: 5px 20px 20px;
    }

    .terms-section {
        grid-template-columns: 38px 1fr;
        gap: 12px;

        padding: 20px 0;
    }

    .terms-number {
        width: 34px;
        height: 34px;

        font-size: 11px;
    }

    .terms-section h3 {
        font-size: 15px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 13px;
    }

    .terms-footer {
        padding: 14px 20px;
    }

    .terms-close-btn {
        padding: 9px 17px;
    }

    .privacy-modal {
        padding: 12px;
    }

    .privacy-modal-box {
        border-radius: 12px;
    }

    .privacy-modal-header {
        padding: 18px 20px;
    }

    .privacy-modal-header h2 {
        font-size: 20px;
    }

    .privacy-modal-body {
        max-height: 67vh;
        padding: 20px;
    }

    .privacy-modal-body h3 {
        font-size: 15px;
    }

    .privacy-modal-body p {
        font-size: 13px;
    }

    .privacy-modal-footer {
        padding: 15px 20px;
        font-size: 12.5px;
    }
}
