/* ===============================
   RESET
================================ */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   AUTH PAGE
================================ */

.auth-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px 20px;

    background:rgb(5, 43, 5);
}


/* ===============================
   AUTH CARD
================================ */

.auth-card{

    width:100%;

    max-width:480px;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:40px;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

}


.auth-logo{

    display:flex;

    justify-content:center;

    margin-bottom:30px;
}

.auth-header{

    text-align:center;

    margin-bottom:35px;
}

.auth-header h2{

    font-size:2rem;

    color:#111827;

    margin-bottom:10px;
}

.auth-header p{

    color:#6b7280;

    line-height:1.7;
}


/* ===============================
   FORM
================================ */

#register-form{

    display:flex;

    flex-direction:column;

    gap:22px;

}

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    margin-bottom:8px;

    font-size:.95rem;

    font-weight:600;

    color:#374151;

}

.form-group input{

    width:100%;

    padding:14px 16px;

    border:1px solid #d1d5db;

    border-radius:10px;

    font-size:1rem;

    transition:.3s ease;

    outline:none;

    background:#fff;

}


.form-group input:focus{

    border-color:var(--primary-color);

    box-shadow:0 0 0 3px rgba(22,163,74,.15);

}


.auth-btn{

    margin-top:10px;

    border:none;

    border-radius:10px;

    padding:15px;

    background:var(--primary-color);

    color:green;

    font-size:1rem;

    font-weight:600;

    cursor:pointer;

    transition:.3s ease;

}

.auth-btn:hover{

    background:var(--primary-dark);

}

/* ===============================
   PASSWORD FIELD
================================ */

.password-group{

    position: relative;

}

.password-group input{

    width:100%;

    padding-right:50px;

}

.toggle-password{

    position:absolute;

    top:50%;

    right:15px;

    transform:translateY(-50%);

    border:none;

    background:none;

    cursor:pointer;

    color:#6b7280;

    font-size:1rem;

}


/* ===============================
   CHECKBOX
================================ */

.checkbox-group{

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 10px;

}

.checkbox-group input{

    margin-top: 4px;

}

.checkbox-group label{

    color: #4b5563;

    line-height: 1.6;

    font-size: .95rem;

}

.checkbox-group a{

    color: var(--primary-color);

    text-decoration: none;

    font-weight: 600;

}

.checkbox-group a:hover{

    text-decoration: underline;

}

.error-message{

    color: #dc2626;

    font-size: .85rem;

    margin-top: 6px;

    min-height: 18px;

}

input.error{

    border-color: #dc2626;

}

input.success{

    border-color: var(--primary-color);

}

/* ===============================
   LOGIN OPTIONS
================================ */

.login-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:-8px;

    margin-bottom:10px;

}

.remember-me{

    display:flex;

    align-items:center;

    gap:8px;

    cursor:pointer;

    font-size:.95rem;

}

.forgot-password{

    color:var(--primary-color);

    text-decoration:none;

    font-size:.95rem;

    font-weight:600;

}

.forgot-password:hover{

    text-decoration:underline;

}


/* =========================================
   ZINASUB LEGAL MODAL
========================================= */

.legal-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 15px;
}

.legal-modal.active {
    display: flex;
}


/* Background */

.legal-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(4px);
}


/* Modal */

.legal-modal-content {
    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    max-height: 90vh;

    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    display: flex;

    flex-direction: column;
}


/* Header */

.legal-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 18px 22px;

    border-bottom: 1px solid #e5e5e5;

    flex-shrink: 0;

}

.legal-modal-header h2 {

    margin: 0;

    font-size: 20px;

    color: #111827;

}


/* Close button */

.legal-close {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    color: #374151;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;

    flex-shrink: 0;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}

.legal-close:hover {

    background: #e5e7eb;

    transform: rotate(90deg);

}


/* Document body */

.legal-modal-body {

    padding: 25px;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    line-height: 1.7;

    color: #374151;

}


/* Legal document */

.legal-modal-body h1 {

    margin-top: 0;

    color: #111827;

    font-size: 26px;

}

.legal-modal-body h2 {

    margin-top: 30px;

    color: #111827;

    font-size: 20px;

}

.legal-modal-body h3 {

    margin-top: 25px;

    color: #111827;

    font-size: 17px;

}

.legal-modal-body p {

    margin: 0 0 15px;

}

.legal-modal-body ul {

    padding-left: 25px;

    margin-bottom: 18px;

}

.legal-modal-body li {

    margin-bottom: 8px;

}


/* Updated date */

.legal-updated {

    padding: 14px 16px;

    margin-bottom: 25px;

    background: #f0fdf4;

    border-left: 4px solid #00b84a;

    border-radius: 8px;

    font-size: 14px;

}


/* Loading */

.legal-loading {

    min-height: 200px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #666;

}


/* Error */

.legal-error {

    text-align: center;

    padding: 50px 20px;

}

.legal-error i {

    font-size: 40px;

    color: #dc2626;

    margin-bottom: 15px;

}

.legal-error h3 {

    margin: 0 0 8px;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .legal-modal {

        padding: 8px;

    }

    .legal-modal-content {

        max-height: 95vh;

        border-radius: 12px;

    }

    .legal-modal-header {

        padding: 14px 16px;

    }

    .legal-modal-header h2 {

        font-size: 17px;

    }

    .legal-close {

        width: 36px;

        height: 36px;

    }

    .legal-modal-body {

        padding: 18px;

        font-size: 14px;

        line-height: 1.65;

    }

    .legal-modal-body h1 {

        font-size: 22px;

    }

    .legal-modal-body h2 {

        font-size: 18px;

    }

    .legal-modal-body h3 {

        font-size: 16px;

    }

}