/* ===== style.css ===== */

@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== غیرفعال کردن text-decoration برای همه لینک‌ها ===== */
a {
    text-decoration: none !important;
}

body {
    font-family: 'Poppins', Tahoma, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #f8f9fc;
    background: linear-gradient(135deg, #243b64, #1a2d4a);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

a:hover {
    text-decoration: none !important;
}

.link {
    color: #f8f9fc;
    transition: color 0.3s ease;
    font-size: 13px;
    text-decoration: none !important;
}

.link:hover {
    color: #8e4057;
    text-decoration: none !important;
}

p {
    font-weight: 500;
    font-size: 14px;
}

h4 {
    font-weight: 600;
    color: #f8f9fc;
}

h6 {
    color: #f8f9fc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

h6 span {
    padding: 0 20px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

/* ===== استایل تب‌ها ===== */
h6 span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8e4057, #6d3245);
    border-radius: 3px;
    transition: width 0.3s ease;
}

h6 span:hover {
    color: #f8f9fc;
}

h6 span.active {
    color: #f8f9fc;
}

h6 span.active::after {
    width: 80%;
}

/* ===== خط جداکننده بین ورود و ثبت‌نام ===== */
h6 span:first-child::before {
    content: '|';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(248, 249, 252, 0.2);
    font-weight: 300;
    font-size: 20px;
}

.section {
    position: relative;
    width: 100%;
    display: block;
}

.full-height {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.text-center {
    text-align: center;
}

.align-self-center {
    align-self: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pt-sm-2 {
    padding-top: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.pb-3 {
    padding-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Checkbox ===== */
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
    display: none;
}

.checkbox:checked + label,
.checkbox:not(:checked) + label {
    position: relative;
    display: block;
    text-align: center;
    width: 60px;
    height: 16px;
    border-radius: 8px;
    padding: 0;
    margin: 10px auto;
    cursor: pointer;
    background-color: #8e4057;
}

.checkbox:checked + label:before,
.checkbox:not(:checked) + label:before {
    position: absolute;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #f8f9fc;
    background-color: #243b64;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f061';
    z-index: 20;
    top: -10px;
    right: -10px;
    line-height: 36px;
    text-align: center;
    font-size: 18px;
    transition: all 0.5s ease;
}

.checkbox:checked + label:before {
    transform: translateX(-44px) rotate(180deg);
}

/* ===== Card 3D ===== */
.card-3d-wrap {
    position: relative;
    width: 440px;
    max-width: 100%;
    height: 480px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    perspective: 800px;
    margin-top: 40px;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: all 600ms ease-out;
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a2d4a, #243b64);
    border-radius: 16px;
    position: absolute;
    -webkit-transform-style: preserve-3d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(142, 64, 87, 0.15);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front {
    background: linear-gradient(145deg, #1a2d4a, #243b64);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #243b64, #1a2d4a);
}

.checkbox:checked ~ .card-3d-wrap .card-3d-wrapper {
    transform: rotateY(180deg);
}

/* ===== Center Wrap ===== */
.center-wrap {
    position: absolute;
    width: 100%;
    padding: 0 35px;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 35px) perspective(100px);
    z-index: 20;
    display: block;
}

/* ===== Form ===== */
.form-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    gap: 12px;
    width: 100%;
}

/* ===== ورودی‌ها با آیکون در سمت راست (RTL) ===== */
.form-style {
    padding: 13px 18px 13px 20px;
    height: 48px;
    width: 100%;
    font-weight: 500;
    border-radius: 8px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.5px;
    outline: none;
    color: #f8f9fc;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 200ms linear;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    font-family: inherit;
    text-align: right;
    flex: 1;
}

.form-style::placeholder {
    color: rgba(248, 249, 252, 0.4);
    text-align: right;
}

.form-style:focus,
.form-style:active {
    border: 2px solid #8e4057;
    outline: none;
    box-shadow: 0 4px 8px 0 rgba(142, 64, 87, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* ===== آیکون در سمت راست input (RTL) ===== */
.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    font-size: 18px;
    color: rgba(248, 249, 252, 0.3);
    transition: all 200ms linear;
    flex-shrink: 0;
    order: -1;
}

/* ===== تغییر رنگ آیکون هنگام فوکوس ===== */
.form-group:focus-within .input-icon {
    color: #8e4057;
}

/* ===== Button ===== */
.btn {
    border-radius: 8px;
    height: 48px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 200ms linear;
    padding: 0 35px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #8e4057;
    color: #f8f9fc;
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-decoration: none !important;
}

.btn:hover {
    background: #f8f9fc;
    color: #243b64;
    box-shadow: 0 8px 30px rgba(142, 64, 87, 0.4);
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .card-3d-wrap {
        height: 500px;
    }

    .center-wrap {
        padding: 0 20px;
    }

    h6 span {
        padding: 0 12px;
        font-size: 15px;
    }

    h6 span:first-child::before {
        font-size: 16px;
    }

    .form-style {
        padding: 11px 14px 11px 16px;
        font-size: 13px;
        height: 44px;
    }

    .input-icon {
        height: 44px;
        width: 44px;
        font-size: 16px;
    }

    .form-group {
        gap: 10px;
    }

    .btn {
        font-size: 12px;
        height: 44px;
        padding: 0 25px;
    }

    h6 span.active::after {
        width: 60%;
    }
}

@media (max-width: 400px) {
    .card-3d-wrap {
        height: 520px;
    }

    h6 span {
        padding: 0 8px;
        font-size: 13px;
    }

    h6 span:first-child::before {
        font-size: 13px;
        left: -2px;
    }

    .center-wrap {
        padding: 0 15px;
    }

    .form-style {
        padding: 10px 12px 10px 14px;
        font-size: 12px;
        height: 42px;
    }

    .input-icon {
        height: 42px;
        width: 42px;
        font-size: 14px;
    }

    .form-group {
        gap: 8px;
    }

    h6 span.active::after {
        width: 50%;
    }
}