* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Vazir", "IRANSansWeb", sans-serif;
    direction: rtl;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.auth-sidebar {
    display: none;
    width: 60%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-sidebar {
        width: 70%;
    }
}

@media (min-width: 1400px) {
    .auth-sidebar {
        width: 70%;
    }
}

.auth-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.2;
    z-index: 1;
}

@media (min-width: 992px) {
    .auth-sidebar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

[type="email"],
[type="number"],
[type="tel"],
[type="url"] {
    direction: rtl;
    text-align: right;
}

.auth-content {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

@media (min-width: 576px) {
    .auth-content {
        padding: 0px;
    }
}

@media (min-width: 768px) {
    .auth-content {
        padding: 0px;
    }
}

@media (min-width: 992px) {
    .auth-content {
        width: 30%;
        background: #ffffff;
        padding: 0;
        position: relative;
        overflow: visible;
    }
}

@media (min-width: 1400px) {
    .auth-content {
        width: 30%;
    }
}

.sidebar-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1200px) {
    .sidebar-content {
        padding: 60px;
    }
}

.back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-link:hover {
    color: #e0e7ff;
    transform: translateX(-5px);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.slider-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 60%;
    padding: 20px;
}

@media (min-width: 1200px) {
    .slider-container {
        padding: 60px;
    }
}

.svg-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.svg-slide.active-item {
    opacity: 1;
    z-index: 3;
}

.svg-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.btn-slide-svg {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    top: 10px;
    border-color: rgba(255, 255, 255, 0.9);
}

.btn-slide-svg:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-slide-svg.active-btn-item {
    background: #00a6f4;
    /* border-color: #00a6f4; */
}

.btn-slide-svg.active-btn-item::after {
    display: none;
}

.sidebar-text {
    color: #ffffff;
    text-align: center;
}

.sidebar-text h3 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-text p {
    font-size: 1rem;
    color: #e0e7ff;
    line-height: 1.6;
}

@media (min-width: 1200px) {
    .sidebar-text h3 {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .sidebar-text p {
        font-size: 1.25rem;
    }
}

.form-wrapper {
    /* width: 100%; */
    max-width: 100%;
    background: transparent;
    padding: 15px;
}

@media (min-width: 576px) {
    .form-wrapper {
        max-width: 500px;
        padding: 15px;
    }
}

@media (min-width: 768px) {
    .form-wrapper {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
}

@media (min-width: 992px) {
    .form-wrapper {
        position: absolute;
        right: 0px;
        left: -104px;
        top: 50%;
        transform: translate(50%, -50%);
        /* width: 100%; */
        max-width: 680px;
        background: rgb(255 255 255 / 75%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 20px;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.5);
        padding: 32px;
        /* border: 1px solid rgba(255, 255, 255, 0.9); */
        z-index: 10;
    }
}

@media (min-width: 1200px) {
    .form-wrapper {
        padding: 35px;
        transform: translate(50%, -50%);
        /* width: 100%; */
        max-width: 750px;
    }
}

.alert-wrapper {
    margin-bottom: 20px;
}

.alert-wrapper .alert {
    position: relative;
    padding: 16px 48px 16px 16px;
    margin-bottom: 0;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInDown 0.4s ease-out;
    font-size: 14px;
    line-height: 1.6;
    min-height: 50px;
}

.alert-wrapper .alert .alert-content {
    flex: 1;
}

.alert-wrapper .alert.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.alert-wrapper .alert.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.alert-wrapper .alert.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.alert-wrapper .alert.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.alert-wrapper
    .alert:not(.alert-success):not(.alert-danger):not(.alert-info):not(
        .alert-warning
    ) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.alert-close-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.alert-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.alert-close-btn:active {
    transform: scale(0.95);
}

.alert-content {
    flex: 1;
    padding-right: 8px;
}

.alert.alert-hiding {
    animation: slideOutUp 0.3s ease-out forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        margin-bottom: 20px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.text-white-mobile {
    color: #ffffff;
}

@media (min-width: 992px) {
    .text-white-mobile {
        color: inherit;
    }
}
