/* =========================================================
   SASEMS SIGNUP PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}


/* =========================================================
   BODY
========================================================= */

body {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    overflow: hidden;

    background: #f2f2f2;
}


/* =========================================================
   BACKGROUND VIDEO
========================================================= */

#bg-video {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;
}


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

.blur-overlay {
    position: fixed;

    inset: 0;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    z-index: -1;
}


/* =========================================================
   MAIN PANEL
========================================================= */

.auth-panel {
    width: 420px;
    max-width: calc(100% - 30px);

    max-height: 92vh;

    overflow-y: auto;

    padding: 35px 30px 25px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.86);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

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

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

    text-align: center;
}


/* =========================================================
   LOGO
========================================================= */

.main-logo {
    width: 78px;
    height: auto;

    margin-bottom: 17px;
}


/* =========================================================
   STEP
========================================================= */

.signup-step {
    width: 100%;
}

.hidden-step {
    display: none;
}


/* =========================================================
   WELCOME
========================================================= */

.welcome-section {
    margin-bottom: 20px;
}

.welcome-section h1 {
    color: #111;

    font-size: 1.65rem;

    font-weight: 700;

    margin-bottom: 6px;
}

.welcome-section p {
    color: #666;

    font-size: 0.88rem;

    line-height: 1.5;
}


/* =========================================================
   HEADINGS
========================================================= */

.auth-panel h2 {
    color: #1d1d1d;

    font-size: 1.3rem;

    font-weight: 700;

    letter-spacing: 0.5px;

    margin-bottom: 7px;
}


/* =========================================================
   RED LINE
========================================================= */

.red-line {
    width: 48px;
    height: 3px;

    margin: 0 auto 18px;

    border-radius: 20px;

    background: #c0392b;
}


/* =========================================================
   STEP ICON
========================================================= */

.step-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(192, 57, 43, 0.10);

    color: #c0392b;

    font-size: 1.15rem;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.step-description {
    margin-bottom: 18px;

    color: #666;

    font-size: 0.87rem;

    line-height: 1.5;
}


/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {
    width: 100%;

    position: relative;

    margin-bottom: 14px;
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: #555;

    font-size: 0.95rem;

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   INPUTS
========================================================= */

.input-group input,
.input-group select {
    width: 100%;
    height: 46px;

    padding: 0 43px;

    border: 1px solid #d8d8d8;

    border-radius: 9px;

    outline: none;

    background: rgba(255, 255, 255, 0.65);

    color: #222;

    font-size: 0.92rem;

    transition: 0.2s ease;
}

.input-group input::placeholder {
    color: #777;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #c0392b;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(192, 57, 43, 0.09);
}


/* =========================================================
   SELECT
========================================================= */

.select-group {
    position: relative;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.select-arrow {
    position: absolute;

    top: 50%;
    right: 15px;

    transform: translateY(-50%);

    color: #666;

    pointer-events: none;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    top: 50%;
    right: 15px;

    transform: translateY(-50%);

    color: #666;

    cursor: pointer;

    transition: 0.2s ease;
}

.password-toggle:hover {
    color: #c0392b;
}


/* =========================================================
   FILE INPUT
========================================================= */

.file-group {
    width: 100%;

    margin-bottom: 14px;

    text-align: left;
}

.file-label {
    display: block;

    margin-bottom: 7px;

    color: #444;

    font-size: 0.82rem;

    font-weight: 600;
}

.file-label i {
    margin-right: 5px;

    color: #c0392b;
}

.file-group input[type="file"] {
    width: 100%;

    padding: 9px;

    border: 1px dashed #ccc;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.6);

    color: #555;

    font-size: 0.8rem;

    cursor: pointer;
}

.file-group input[type="file"]::file-selector-button {
    margin-right: 9px;

    padding: 7px 10px;

    border: none;

    border-radius: 6px;

    background: #c0392b;

    color: #fff;

    font-size: 0.76rem;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   TERMS CHECKBOX
========================================================= */

.terms-box {
    width: 100%;

    margin-bottom: 16px;

    text-align: left;
}

.terms-label {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #4d4d4d;

    font-size: 0.82rem;

    line-height: 1.45;

    cursor: pointer;
}

.terms-label input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-check {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin-top: 1px;

    border: 1.5px solid #aaa;

    border-radius: 4px;

    background: #fff;

    position: relative;
}

.terms-label input:checked + .custom-check {
    border-color: #c0392b;

    background: #c0392b;
}

.terms-label input:checked + .custom-check::after {
    content: "";

    position: absolute;

    left: 4px;
    top: 1px;

    width: 5px;
    height: 9px;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);
}

.terms-label a {
    color: #c0392b;

    font-weight: 600;

    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}


/* =========================================================
   MAIN BUTTON
========================================================= */

.btn-main {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 9px;

    background: #c0392b;

    color: #fff;

    font-size: 0.9rem;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(192, 57, 43, 0.27);

    transition: 0.2s ease;
}

.btn-main:hover {
    background: #a93226;

    box-shadow:
        0 8px 20px rgba(192, 57, 43, 0.34);
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-main:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.btn-secondary {
    width: 100%;
    height: 43px;

    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid #ddd;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.6);

    color: #555;

    font-size: 0.85rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.btn-secondary:hover {
    background: #fff;

    color: #c0392b;
}


/* =========================================================
   BACK TO LOGIN
========================================================= */

.btn-back {
    margin-top: 19px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #555;

    font-size: 0.83rem;

    font-weight: 600;

    text-decoration: none;
}

.btn-back:hover {
    color: #c0392b;
}


/* =========================================================
   TERMS MODAL
========================================================= */

.terms-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    padding: 18px;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.50);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


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

.terms-modal-content {
    width: 100%;

    max-width: 650px;

    max-height: 88vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3);

    animation: modalAppear 0.2s ease;
}

@keyframes modalAppear {

    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }

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


/* =========================================================
   TERMS HEADER
========================================================= */

.terms-header {
    min-height: 86px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom: 1px solid #ededed;

    background: #fff;
}

.terms-header-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(192, 57, 43, 0.10);

    color: #c0392b;

    font-size: 1rem;
}

.terms-header-text {
    flex: 1;
}

.terms-header-text > span {
    display: block;

    margin-bottom: 2px;

    color: #c0392b;

    font-size: 0.64rem;

    font-weight: 700;

    letter-spacing: 0.8px;
}

.terms-header-text h3 {
    margin: 0 0 3px;

    color: #222;

    font-size: 1.15rem;
}

.terms-header-text p {
    color: #777;

    font-size: 0.74rem;
}


/* =========================================================
   CLOSE
========================================================= */

.terms-close {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #f4f4f4;

    color: #666;

    cursor: pointer;

    transition: 0.2s ease;
}

.terms-close:hover {
    background: #ededed;

    color: #c0392b;
}


/* =========================================================
   TERMS CONTENT
========================================================= */

.terms-content {
    flex: 1;

    overflow-y: auto;

    padding: 5px 22px;

    background: #fafafa;
}


/* =========================================================
   TERM
========================================================= */

.term-item {
    display: flex;

    gap: 14px;

    padding: 17px 0;

    border-bottom: 1px solid #e8e8e8;
}

.term-item.last {
    border-bottom: none;
}


/* =========================================================
   NUMBER
========================================================= */

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

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f1f1f1;

    color: #c0392b;

    font-size: 0.7rem;

    font-weight: 700;
}


/* =========================================================
   TERM TEXT
========================================================= */

.term-item h4 {
    margin-bottom: 5px;

    color: #242424;

    font-size: 0.88rem;
}

.term-item p {
    color: #666;

    font-size: 0.79rem;

    line-height: 1.65;
}

.term-item strong {
    color: #333;
}


/* =========================================================
   NOTICE
========================================================= */

.terms-notice {
    margin: 14px 20px;

    padding: 10px 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    border-radius: 8px;

    background: rgba(192, 57, 43, 0.06);

    color: #666;

    font-size: 0.74rem;
}

.terms-notice i {
    color: #c0392b;
}


/* =========================================================
   TERMS FOOTER
========================================================= */

.terms-footer {
    padding: 15px 20px 19px;

    display: flex;

    justify-content: flex-end;

    gap: 8px;

    border-top: 1px solid #ededed;

    background: #fff;
}


/* =========================================================
   TERMS BUTTONS
========================================================= */

.terms-cancel,
.terms-agree {
    height: 40px;

    padding: 0 17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 8px;

    font-size: 0.8rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.terms-cancel {
    border: 1px solid #ddd;

    background: #f5f5f5;

    color: #555;
}

.terms-cancel:hover {
    background: #eaeaea;
}

.terms-agree {
    border: none;

    background: #c0392b;

    color: #fff;

    box-shadow:
        0 5px 13px rgba(192, 57, 43, 0.22);
}

.terms-agree:hover {
    background: #a93226;
}


/* =========================================================
   SCROLLBARS
========================================================= */

.auth-panel::-webkit-scrollbar,
.terms-content::-webkit-scrollbar {
    width: 6px;
}

.auth-panel::-webkit-scrollbar-track,
.terms-content::-webkit-scrollbar-track {
    background: transparent;
}

.auth-panel::-webkit-scrollbar-thumb,
.terms-content::-webkit-scrollbar-thumb {
    background: #cfcfcf;

    border-radius: 10px;
}


/* =========================================================
   SWEETALERT
========================================================= */

.custom-swal-popup {
    border-radius: 16px !important;
}

.custom-swal-title {
    color: #222 !important;
}

.custom-swal-text {
    color: #666 !important;
}

.custom-swal-btn {
    background: #c0392b !important;

    border-radius: 8px !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-panel {
        width: calc(100% - 24px);

        max-height: 94vh;

        padding: 27px 19px 22px;

        border-radius: 18px;
    }

    .main-logo {
        width: 68px;
    }

    .welcome-section h1 {
        font-size: 1.4rem;
    }

    .auth-panel h2 {
        font-size: 1.12rem;
    }

    .terms-modal {
        padding: 10px;
    }

    .terms-modal-content {
        max-height: 94vh;

        border-radius: 15px;
    }

    .terms-header {
        padding: 16px;
    }

    .terms-header-text h3 {
        font-size: 1rem;
    }

    .terms-header-text p {
        font-size: 0.69rem;
    }

    .terms-content {
        padding: 4px 16px;
    }

    .term-item {
        gap: 10px;

        padding: 14px 0;
    }

    .term-number {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }

    .term-item h4 {
        font-size: 0.82rem;
    }

    .term-item p {
        font-size: 0.74rem;

        line-height: 1.55;
    }

    .terms-footer {
        padding: 12px 16px 16px;
    }

    .terms-cancel,
    .terms-agree {
        flex: 1;
    }
}