﻿
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #172b4d;
    --muted: #718096;
    --border: #dce5f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 10%, #e0ebff, transparent 35%), linear-gradient(135deg, #f5f8ff, #edf3fb);
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 1150px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(34, 67, 120, .13);
}

.brand-panel {
    background: linear-gradient(145deg, #4269a8, #193c72);
    color: white;
    padding: 55px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .brand-panel::before,
    .brand-panel::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 50%;
        width: 380px;
        height: 380px;
        pointer-events: none;
    }

    .brand-panel::before {
        top: -190px;
        right: -130px;
    }

    .brand-panel::after {
        bottom: -230px;
        left: -120px;
        width: 480px;
        height: 480px;
    }

.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 27px;
    font-weight: 800;
    direction: ltr;
    justify-content: center;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    font-size: 29px;
}

.brand-content h1 {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.9;
    margin-top: 40px;
    text-align: center;
}

.brand-description {
    color: #dbe7ff;
    text-align: center;
    line-height: 2.2;
    font-size: 14px;
    margin-top: 12px;
}

.ticket-illustration {
    margin: 30px auto;
    width: 210px;
    height: 170px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 86px;
    transform: rotate(-5deg);
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 13px;
    font-weight: 600;
}

.feature-description {
    color: #cfddf7;
    font-size: 11px;
    line-height: 1.9;
    margin-top: 6px;
}

.form-panel {
    padding: 48px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #f0f5fc;
    border-radius: 12px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #4b5d78;
    border-radius: 9px;
    padding: 13px 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .auth-tab.active {
        background: var(--primary);
        color: white;
        box-shadow: 0 5px 14px rgba(37,99,235,.22);
    }

.form-heading {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin-bottom: 27px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.form-control {
    height: 49px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    padding: 12px 14px;
    text-align: right;
}

    .form-control:focus {
        border-color: #80a9fa;
        box-shadow: 0 0 0 3px rgba(37,99,235,.10);
    }

    .form-control::placeholder {
        color: #9aa9c0;
    }

.field-group {
    margin-bottom: 19px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    margin: 5px 0 23px;
}

.form-check-input {
    margin-left: 7px;
    float: right;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
}

    .text-link:hover {
        text-decoration: underline;
    }

.btn-auth {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    transition: .2s;
}

    .btn-auth:hover {
        background: var(--primary-dark);
        color: white;
        transform: translateY(-1px);
    }

.form-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    font-size: 12px;
    margin: 23px 0;
}

    .form-divider::before,
    .form-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e7edf5;
    }

.auth-form {
    display: none;
}

    .auth-form.active {
        display: block;
        animation: appear .25s ease;
    }



.switch-text {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 24px;
}

.brand-footer {
    font-size: 11px;
    color: #cfddf7;
    text-align: center;
    margin-top: 35px;
}

@@media (max-width: 900px) {
    .auth-card {
        max-width: 540px;
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        padding: 42px 35px;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 12px;
    }

    .auth-card {
        border-radius: 16px;
    }

    .form-panel {
        padding: 30px 22px;
    }

    .form-heading {
        font-size: 22px;
    }
}


