/* NORMALIZE css starts here */
*,
::before,
::after {
	box-sizing: border-box;
	border-width: 0;
	border-style: solid;
	border-color: #e5e7eb;
}

html,
:host {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
	font-family:
		ui-sans-serif,
		system-ui,
		sans-serif,
		"Apple Color Emoji",
		"Segoe UI Emoji",
		"Segoe UI Symbol",
		"Noto Color Emoji";
	font-feature-settings: normal;
	font-variation-settings: normal;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	line-height: inherit;
}

hr {
	height: 0;
	color: inherit;
	border-top-width: 1px;
}

abbr:where([title]) {
	text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: inherit;
	font-weight: inherit;
}

a {
	color: inherit;
	text-decoration: inherit;
}

b,
strong {
	font-weight: bolder;
}

code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Monaco,
		Consolas,
		"Liberation Mono",
		"Courier New",
		monospace;
	font-feature-settings: normal;
	font-variation-settings: normal;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

table {
	text-indent: 0;
	border-color: inherit;
	border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	font-size: 100%;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	margin: 0;
	padding: 0;
}

button,
select {
	text-transform: none;
}

button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
	-webkit-appearance: button;
	appearance: button;
	background-color: transparent;
	background-image: none;
}

:-moz-focusring {
	outline: auto;
}

:-moz-ui-invalid {
	box-shadow: none;
}

progress {
	vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

[type=search] {
	-webkit-appearance: textfield;
	appearance: textfield;
	outline-offset: -2px;
}

::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

summary {
	display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
	margin: 0;
}

fieldset {
	margin: 0;
	padding: 0;
}

legend {
	padding: 0;
}

ol,
ul,
menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

dialog {
	padding: 0;
}

textarea {
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	opacity: 1;
	color: #9ca3af;
}

button,
[role=button] {
	cursor: pointer;
}

:disabled {
	cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
	display: block;
	vertical-align: middle;
}

img,
video {
	max-width: 100%;
	height: auto;
}

html {
	font-family: "Cairo",
		ui-sans-serif,
		system-ui,
		sans-serif,
		"Apple Color Emoji",
		"Segoe UI Emoji",
		"Segoe UI Symbol",
		"Noto Color Emoji";
}

.hidden {
	display: none !important;
}

.relative {
    position: relative;
}

.line-clamp-1 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
}

.line-clamp-2 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.line-clamp-3 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
body {
    background-color: #fff;

    [data-theme=dark] & {
        background-color: #030712;
    }
}
body > div {
	height: 100dvh;
    overflow: hidden;
	display: flex;
    align-items: center;
    flex-direction: row-reverse;
    width: 100%;

    @media (width < 768px) {
        height: auto;
        overflow: unset;
    }
}

aside {
    max-width: 724px;
    width: 100%;
    height: 100%;

    @media (width < 768px) {
        display: none;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

main.main {
    overflow-y: auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-main, .reset-main {
    max-width: 424px;
    width: 100%;
    margin: 0 auto;

    @media (width < 768px) {
        padding: 20px;
    }
}

.activate-main {
    max-width: 536px;
    width: 100%;
    margin: 0 auto;

    @media (width < 768px) {
        padding: 20px;
    }
}

.register-main {
    max-width: 536px;
    width: 100%;
    margin: 0 auto;

    @media (width < 768px) {
        padding: 20px;
    }

    .top-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;

        .steps-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .step-indicators {
            &.current {
                #current {
                    display: block;
                }
                #next {
                    display: none;
                }
                #complete {
                    display: none;
                }
            }
            &.next {
                #current {
                    display: none;
                }
                #next {
                    display: block;
                }
                #complete {
                    display: none;
                }
            }
            &.complete {
                #current {
                    display: none;
                }
                #next {
                    display: none;
                }
                #complete {
                    display: block;
                }
            }
        }
    }
}

.go-back {
    color: #8A1739;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-weight: 500;
}

.top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.top-logo {
	img.islam-dark {
		display: none;
	}

	[data-theme=dark] & {
		img.islam-dark {
			display: block;
		}
		img.islam-light {
			display: none;
		}
	}
}

.theme-toggle {
    padding: 13.5px;
    background-color: #F5F5F5;
    border-radius: 8px;

    @media (width < 768px) {
        padding: 8px;
        margin-right: 6px;
    }

    svg.theme-toggle_dark {
        display: none;
    }

    [data-theme=dark] & {
        background-color: #171717;

        svg.theme-toggle_dark {
            display: block;
        }

        svg.theme-toggle_light {
            display: none;
        }
    }
}

.top-title {
    color: #030712;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;

    [data-theme=dark] & {
        color: #fff;
    }
}

.top-desc {
    color: #6B7280;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 24px;

    [data-theme=dark] & {
        color: 9CA3AF;
    }
}

.login-with {
    padding: 12px 18px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 24px;

    [data-theme=dark] & {
        border-color: #374151;
        color: #E5E7EB;
    }
}

.separator {
    display: block;
    position: relative;
    text-align: center;
    margin-bottom: 24px;

    span {
        display: inline-block;
        color: #374151;
        font-size: 14px;
        background-color: #fff;
        padding: 0 8px;
        position: relative;
        z-index: 2;

        [data-theme=dark] & {
            background-color: #030712;
            color: #E5E7EB;
        }
    }
    [data-theme=dark] & {
        &::before {
            background-color: #374151;
        }
    }

    &::before {
        content: '';
        width: 100%;
        height: 1px;
        background-color: #E5E7EB;
        position: absolute;
        top: 50%;
        left: 0;
        z-index: 1;
    }
}

form {
    label {
        display: block;

        &:not(:first-child) {
            margin-top: 24px;
        }

        .input-label {
            display: block;
            margin-bottom: 4px;
            font-size: 14px;
            color: #030712;

            [data-theme=dark] & {
                color: #E5E7EB;
            }
        }

        &:has(.form-input[required]) .input-label::after,
        &:has(input[type="radio"][required]) .input-label::after,
        &:has(input[type="checkbox"][required]) .input-label::after {
            content: ' *';
            color: #DC3545;
        }

        .form-input {
            width: 100%;
            background-color: transparent;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            padding: 11px 12px;

            [data-theme=dark] & {
                color: #E5E7EB;
                border-color: #374151;
            }
        }

        select.form-input {
            appearance: none;
            position: relative;
            background-repeat: no-repeat;
            background-image: url('./images/arrow-down.svg');
            background-position-x: 10px;
            background-position-y: 50%;
            background-size: 18px;

            [data-theme=dark] & {
                background-color: #030712;
            }
        }

        &.radio {
            display: flex;
            align-items: center;
            justify-content: space-between;
            
            .radio-inputs {
                display: flex;
                align-items: center;
                gap: 12px;

                .radio-option {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    margin: 0;

                    input[type="radio"] {
                        width: 20px;
                        height: 20px;
                        accent-color: #8A1739;
                        cursor: pointer;
                    }

                    span {
                        color: #4B5563;

                        [data-theme=dark] & {
                            color: #E5E7EB;
                        }
                    }
                }
            }
        }

        &.checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 8px;

            .checkbox-input {
                width: 20px;
                height: 20px;
                margin-top: 2px;
                accent-color: #8A1739;
                cursor: pointer;
                flex-shrink: 0;
            }

            .checkbox-text {
                color: #374151;
                font-weight: 500;

                [data-theme=dark] & {
                    color: #E5E7EB;
                }

                .item-link {
                    color: #8A1739;
                    
                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
        }

        input[type="date"], input[type="datetime-local"] {
            text-align: right;
            position: relative;
            cursor: pointer;
        }

        input[type="date"]::-webkit-calendar-picker-indicator,
        input[type="datetime-local"]::-webkit-calendar-picker-indicator {
            background-image: url('/images/calendar.svg');
            background-repeat: no-repeat;
            background-size: 24px 24px;
            width: 24px;
            height: 24px;
            cursor: pointer;
            position: absolute;
            left: 16px;
        }

        .input-note {
            color: #9CA3AF;
            font-size: 12px;
        }

        .pass-toggle {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
        }

    }
    
    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 24px;
        
        @media (width < 768px) {
            grid-template-columns: repeat(1, 1fr);
            gap: 24px;
        }

        > label {
            margin: 0;
        }
    }

    .form-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .form-actions-back {
        padding: 12px 18px;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        color: #374151;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 24px;

        [data-theme=dark] & {
            color: #E5E7EB;
            border-color: #374151;
            
            svg path {
                stroke: #E5E7EB;
            }
        }
    }

    .form-submit-btn {
        padding: 12px 18px;
        background-color: #8A1739;
        color: #fff;
        font-weight: 500;
        border-radius: 8px;
        width: 100%;
        margin-top: 24px;
    }
}

.forgot-pass {
    color: #8A1739;
    font-weight: 500;
    text-align: left;
    display: block;
    margin-top: 24px;
}

.bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    font-weight: 500;

    [data-theme=dark] & {
        .bottom-links_item {
            color: #E5E7EB;
        }
    }

    .bottom-links_item:not(:first-child) {
        padding-right: 24px;
        border-right: 1px solid #E5E7EB;
        margin-right: 24px;

        [data-theme=dark] & {
            border-color: #374151;
        }
    }

    .bottom-links_item .item-link {
        color: #8A1739;
    }
}

.otp-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    direction: ltr;
    margin-bottom: 24px;

    .otp-input {
        width: 100%;
        height: 100%;
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        border: 1px solid #E5E7EB;
        border-radius: 10px;
        background-color: transparent;
        padding: 14px;

        [data-theme=dark] & {
            color: #E5E7EB;
            border-color: #374151;
        }

        &:focus {
            outline: none;
            border-color: #8A1739;
        }
    }

    .otp-separator {
        color: #6B7280;
        font-size: 20px;
        font-weight: 600;
        margin: 0 4px;

        [data-theme=dark] & {
            color: #9CA3AF;
        }
    }
}
.otp-form {
    .otp-timer {
        text-align: center;
        color: #4B5563;
        font-weight: 500;

        [data-theme=dark] & {
            color: #9CA3AF;
        }

        #timer_display {
            font-weight: 600;
            color: #8A1739;
        }
        
        .timer_sec {
            color: #8A1739;
            font-weight: 600;
        }
    }

    .resend-otp-btn {
        color: #8A1739;
        font-weight: 500;
        width: 100%;
        text-align: center;
    }
}

dialog {
    max-width: 518px;
    width: 100%;
    background-color: transparent;
    
    &::backdrop {
        backdrop-filter: blur(2px);
    }

    @media (width < 768px) {
        padding: 20px;
    }

    .dialog-main {
        padding: 48px;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 16px;
        text-align: center;
        background-color: #fff;
        border-radius: 8px;

        [data-theme=dark] & {
            background-color: #000;
        }

        .dialog-svg {
            padding: 27px;
            background-color: #EBFAF7;
            border-radius: 50%;

            [data-theme=dark] & {
                background-color: #004D3E;
            }
        }

        .dialog-title {
            color: #111827;
            font-size: 20px;
            font-weight: 700;

            [data-theme=dark] & {
                color: #E5E7EB;
            }
        }
        
        .dialog-desc {
            color: #6B7280;

            [data-theme=dark] & {
                color: #9CA3AF;
            }
        }

        .dialog-btn {
            width: 100%;
            padding: 12px 18px;
            background-color: #8A1739;
            border-radius: 8px;
            color: #fff;
            font-weight: 500;
        }
    }
}

.iti.iti--allow-dropdown {
	width: 100%;
}