﻿
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap');

:root {
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --icon-color: #0ea5e9;
    --glass-bg: rgba(255,255,255,0.2);
    --glass-blur: blur(10px);
}

* {
    box-sizing: border-box
         
}
.container {
    display: flex;
    justify-content:center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.form-wrap {
    width: 45%;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

@media(max-width:768px) {
    .container {
        flex-direction: column;
    }

    .form-wrap {
        width: 90%;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        margin-top: 20px;
    }
}

.illustration {
    width: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .illustration img {
        width: 100%;
        height: auto;
        border-radius: 30% 70% 50% 50% / 40% 30% 70% 60%;
        filter: drop-shadow(0 0 30px rgba(124,58,237,0.6)) brightness(1.2);
        transition: all 0.3s ease;
    }

@media(max-width:768px) {
    .illustration {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }

        .illustration img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0;
            filter: blur(2px) brightness(1.2) opacity(0.2);
        }
}

h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #0f172a
}

p.helper {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px
}

.field {
    position: relative;
    margin-bottom: 16px
}

    .field label {
        display: block;
        font-size: 13px;
        margin-bottom: 6px;
        color: #334155
    }

    .field input {
        width: 100%;
        padding: 12px 40px 12px 12px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        font-size: 14px;
    }

        .field input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(124,58,237,0.15)
        }

    .field .icon {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        color: var(--icon-color);
        font-size: 18px;
    }

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #334155
}

    .remember input {
        width: 16px;
        height: 16px
    }

button.submit {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color:#fff;
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(124,58,237,0.25)
}

    button.submit:hover {
        opacity: 0.9
    }

.foot {
    font-size: 12px;
    color: #64748b;
    margin-top: 16px
}

    .foot a {
        color: var(--accent);
        cursor: pointer;
        text-decoration: underline
    }

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999; /* اطمینان از نمایش روی فرم و تصویر */
}

    .modal-bg.active {
        opacity: 1;
        pointer-events: auto
    }

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.modal-bg.active .modal {
    transform: translateY(0)
}

.modal h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 20px
}

.modal ul {
    list-style: none;
    padding: 0;
    margin: 16px 0
}

.modal li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #334155
}

    .modal li span.check {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-left: 8px;
        border-radius: 50%;
        background: var(--accent);
        color: white;
        text-align: center;
        line-height: 20px;
        font-weight: bold
    }

.modal button.confirm {
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    float: right;
    margin-top: 12px
}









