* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.35), transparent 32%),
        radial-gradient(circle at bottom left, rgba(32, 201, 151, 0.26), transparent 35%),
        linear-gradient(135deg, #071426 0%, #101d35 50%, #08111f 100%);
    overflow: hidden;
    color: #111827;
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(3px);
    animation: floatShape 12s infinite ease-in-out;
}

.shape.one {
    width: 260px;
    height: 260px;
    background: #0d6efd;
    top: 8%;
    right: 10%;
}

.shape.two {
    width: 180px;
    height: 180px;
    background: #20c997;
    bottom: 12%;
    left: 12%;
    animation-delay: 2s;
}

.shape.three {
    width: 120px;
    height: 120px;
    background: #ffc107;
    top: 62%;
    right: 25%;
    animation-delay: 4s;
}

.shape.four {
    width: 90px;
    height: 90px;
    background: #dc3545;
    top: 14%;
    left: 22%;
    animation-delay: 6s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, -35px) scale(1.08);
    }
}

.page-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    animation: cardEntrance 0.8s ease forwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.brand-side {
    position: relative;
    padding: 45px 38px;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(13, 110, 253, 0.94), rgba(7, 20, 38, 0.92)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.brand-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
    background-size: 28px 28px;
    opacity: 0.22;
}

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 900;
}

.company-logo i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-title {
    margin-top: 55px;
}

.brand-title h1 {
    font-size: 34px;
    line-height: 1.6;
    font-weight: 900;
    margin-bottom: 18px;
}

.brand-title p {
    font-size: 15px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.82);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.92);
}

.feature-item i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-footer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.form-side {
    background: rgba(255, 255, 255, 0.97);
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 30px;
}

.badge-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.10);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-header h2 {
    font-size: 29px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #111827;
}

.form-header p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    font-weight: 800;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #dbe3ef !important;
    background-color: #f8fafc !important;
    border-radius: 15px !important;
    min-height: 50px;
    padding: 12px 14px !important;
    font-size: 14px;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

.form-control:focus {
    background-color: #fff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12) !important;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    color: #dc3545;
    font-size: 12px;
    font-weight: 700;
}

.alert-custom {
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}

.btn-login {
    width: 100%;
    border: none;
    height: 53px;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    background: linear-gradient(135deg, #0d6efd, #0052cc, #20c997);
    background-size: 200% 200%;
    box-shadow: 0 16px 30px rgba(13, 110, 253, 0.28);
    transition: all 0.25s ease;
    animation: gradientMove 4s infinite ease;
    margin-top: 8px;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: right center;
    }

    50% {
        background-position: left center;
    }
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(13, 110, 253, 0.35);
}

.register-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #475569;
}

.register-link a {
    color: #0d6efd;
    font-weight: 900;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 850px) {
    body {
        overflow-y: auto;
    }

    .login-container {
        grid-template-columns: 1fr;
    }

    .brand-side {
        min-height: 360px;
    }
}

@media (max-width: 576px) {
    .page-wrapper {
        padding: 14px;
    }

    .brand-side,
    .form-side {
        padding: 30px 22px;
    }

    .brand-title h1 {
        font-size: 25px;
    }

    .form-header h2 {
        font-size: 24px;
    }
}