@font-face {
    font-family: "iranyekan";
    src: url("/fonts/iran-yekan/woff2/IRANYekanX-Regular.woff2") format("woff2"),
    url("/fonts/iran-yekan/woff/IRANYekanX-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "iranyekan";
    src: url("/fonts/iran-yekan/woff2/IRANYekanX-Bold.woff2") format("woff2"),
    url("/fonts/iran-yekan/woff/IRANYekanX-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "iranyekan";
}

.body-page {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: #0B101B;
    background-image: url("/assets/images/bg-rounded-shape.png");
    background-position: center center;
    background-repeat: no-repeat;
}

.body-page::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("/assets/images/bg-box-shapes.png");
    background-position: center center;
    background-repeat: no-repeat;
}

.header-page {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.logo {
    user-select: none;
}

.main-page {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
    text-align: center;
    width: 100%;
}

.title {
    font-size: 40px;
    line-height: 50px;
    font-weight: bolder;
    background: linear-gradient(
            90deg,
            #144EE3 0%,
            #EB568E 19%,
            #A353AA 64%,
            #144EE3 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 16px;
    line-height: 24px;
    color: #C9CED6;
    margin-top: 20px;
    margin-bottom: 28px;
}

.input-box {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 659px;
}

.input-box::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background: rgba(53, 60, 74, 1);
    border-radius: 48px;
    z-index: -1;
    pointer-events: none;
}

.input-box::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background: rgba(20, 78, 227, 0.1);
    border-radius: 48px;
    z-index: -1;
    pointer-events: none;
}

.input {
    backdrop-filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
    padding: 20px 24px;
    width: 100%;
    background-color: #181E29;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 28px;
    color: #C9CED6;
    border-radius: 48px;
}

.input::placeholder {
    color: #C9CED6;
}

.submit-btn {
    position: absolute;
    left: 4px;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #144EE3;
    color: #FFFFFF;
    border: 1px solid #144EE3;
    border-radius: 48px;
    filter: drop-shadow(10px 9px 22px rgba(20, 78, 227, 0.38));
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.result-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    width: 100%;
    max-width: 659px;
    background-color: #181E29;
    backdrop-filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    padding: 16px;
    margin-top: 32px;
}

.result-text {
    color: #C9CED6;
    font-size: 16px;
    font-weight: 600;
}

.copy-icon {
    cursor: pointer;
    user-select: none;
}

.footer-page {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    gap: 5px;
    color: #C9CED6;
    font-size: 14px;
}

.copyright-link {
    color: #144EE3;
    text-underline: #144EE3;
    user-select: none;
}

.title-2 {
    font-size: 24px;
    line-height: 50px;
    font-weight: bolder;
    text-align: center;
    background: linear-gradient(
            90deg,
            #144EE3 0%,
            #EB568E 19%,
            #A353AA 64%,
            #144EE3 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Toast Styles */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    max-width: 320px;
    backdrop-filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.1));
    font-size: 14px;
    font-weight: 600;
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.toast-success {
    background-color: #ECFDF3;
    color: #008a2e;
    border: 1px solid #BFFCD9;
}

.toast-error {
    background-color: #FFF0F0;
    color: #E60000;
    border: 1px solid #FFE0E1;
}

@media (min-width: 480px) {
    .title {
        font-size: 60px;
        line-height: 80px;
    }

    .description {
        margin-bottom: 46px;
    }

    .submit-btn {
        width: 178px;
    }
}
.home-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 659px;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #C9CED6;
    cursor: pointer;
    user-select: none;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 28px;
    background-color: #353C4A;
    border: 1px solid #2A3140;
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

.toggle-slider::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 3px;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    transition: right 0.2s ease, background-color 0.2s ease;
}

.toggle-input:checked + .toggle-slider {
    background-color: #144EE3;
    border-color: #144EE3;
}

.toggle-input:checked + .toggle-slider::after {
    right: 23px;
    background-color: #FFFFFF;
}

.toggle-input:focus + .toggle-slider {
    outline: 2px solid rgba(20, 78, 227, 0.4);
    outline-offset: 2px;
}

.toggle-text {
    font-size: 14px;
    line-height: 22px;
}
