﻿@font-face {
    font-family: Vazirmatn;
    src: url('/content/dist/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #5e288e;
    --accent-color: #fab233;
    --primary-hover: #4a1f70;
    --success-color: #10b981;
    --error-color: #e53e3e;
    --text-main: #2d3748;
    --text-light: #718096;
    --bg-body: #ffffff;
    --bg-input: #edf2f7;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Layout */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.auth-sidebar {
    background-color: var(--primary-color);
    background-image: radial-gradient(at 10% 10%, rgba(250,178,51,.2) 0, transparent 50%), radial-gradient(at 90% 90%, rgba(150,80,220,.4) 0, transparent 50%);
    width: 40%;
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .auth-sidebar::before {
        content: '';
        position: absolute;
        top: -10%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: var(--accent-color);
        border-radius: 50%;
        opacity: .15;
        filter: blur(50px);
    }

.brand-logo {
    max-width: 140px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.1));
}

.auth-sidebar h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.7;
    margin-bottom: 20px;
}

    .auth-sidebar h2 span {
        color: var(--accent-color);
    }

.auth-sidebar p {
    opacity: .9;
    line-height: 1.8;
    font-size: 15px;
}

/* Feature list */

.feature-list {
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

    .feature-list li {
        margin-bottom: 22px;
        display: flex;
        align-items: center;
        font-size: 15px;
    }

        .feature-list li i,
        .feature-list li .glyphicon {
            margin-left: 12px;
            color: var(--accent-color);
            font-size: 18px;
        }

/* Content */

.auth-content {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.form-container {
    width: 100%;
    padding: 50px 40px;
    border-radius: 24px;
    background: white;
}

.max-with-500 {
    max-width: 500px;
}

/* Steps */

.step {
    display: none;
    animation: fadeInRight .5s cubic-bezier(.4,0,.2,1) forwards;
}

    .step.active {
        display: block;
    }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form */

.form-group {
    margin-bottom: 22px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.form-control {
    height: 54px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: var(--bg-input);
    padding: 10px 18px;
    font-size: 15px;
    transition: .3s;
}

    .form-control:focus {
        background: white;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(94,40,142,.1);
        outline: none;
    }

/* Password */

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
}

/* Validation */

.invalid-feedback {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 600;
}

.has-error .form-control {
    border-color: var(--error-color);
    background: #fff5f5;
}

    .has-error .form-control:focus {
        box-shadow: 0 0 0 4px rgba(229,62,62,.15);
    }

.has-error .invalid-feedback {
    display: block;
    animation: fadeInRight .3s ease;
}

/* Buttons */

.btn-next,
.btn-login,
.btn-main {
    background: var(--primary-color);
    color: white;
    border: none;
    height: 56px;
    border-radius: 14px;
    width: 100%;
    font-weight: 700;
    margin-top: 25px;
    transition: .3s;
}

    .btn-next:hover,
    .btn-login:hover,
    .btn-main:hover {
        background: var(--primary-hover);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -5px rgba(94,40,142,.4);
    }

/* Links */

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-light);
}

    .auth-links a {
        color: var(--primary-color);
        font-weight: 700;
        text-decoration: none;
    }

        .auth-links a:hover {
            color: var(--primary-hover);
        }

/* Progress */

.progress-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 45px;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-light);
    z-index: 2;
    transition: .4s;
}

    .step-dot.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        box-shadow: 0 0 0 5px rgba(94,40,142,.15);
    }

.step-line {
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
}

.step-line-fill {
    position: absolute;
    top: 17px;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width .4s;
    width: 0;
}

/* OTP */

.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    direction: ltr;
}

.otp-input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    border-radius: 14px;
    background: var(--bg-input);
    border: 2px solid transparent;
}

/* Loader */

.success-loader {
    text-align: center;
    padding: 30px 0;
}

.spinner {
    width: 65px;
    height: 65px;
    border: 4px solid var(--bg-input);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

h3 {
    font-size: 22px;
}

/* Responsive */

@media (max-width: 992px) {
    .auth-sidebar {
        display: none;
    }

    .auth-content {
        width: 100%;
        padding: 20px;
    }

    .form-container {
        padding: 30px 20px;
        box-shadow: none;
    }
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

    .page-loader.active {
        opacity: 1;
        visibility: visible;
    }

.loader-box {
    text-align: center;
    animation: loaderEnter .35s ease;
}

@keyframes loaderEnter {

    from {
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.loader-spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #4f46e5;
    margin: auto;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-title {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.loader-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
}

.text-center {
    text-align: center;
}


#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-width: 240px;
    max-width: 90%;
    z-index: 9999;
    background: #2d3748;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
    text-align: center;
}

    #toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }


.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: #e54242;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
    margin-right: 10px;
}
