﻿:root {
    --brand: #6d28d9;
    --brand-dark: #4c1d95;
    --brand-light: #8b5cf6;
    --brand-foreground: #ffffff;
    --page-bg: #ece9f5;
    --text-body: #3b2e5a;
    --muted: #8a80a3;
    --border: #e4e0ef;
}


.tick-img {
    width: 124px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(255,255,255,.12));
    transform: scale(1.2);
    margin-left: -1%;
}



* {
    font-family: "Vazirmatn", system-ui, sans-serif;
}

body {
    background-color: var(--page-bg);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.login-shell {
    width: 100%;
    max-width: 420px;
}

.page-title {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(76, 29, 149, 0.45);
}

/* purple hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 1.75rem 2.25rem;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, var(--brand-light));
    text-align: center;
}

.hero__backdrop {
    pointer-events: none;
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    opacity: 0.25;
    mix-blend-mode: soft-light;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%);
}

.hero__logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 6rem;
    direction: ltr;
}

.hero__logo-mark {
    width: 42px;
    height: 42px;
    color: #fff;
}

.hero__logo-text {
    color: #fff;
    font-weight: 900;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.hero__badge {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hero__badge-img {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto;
}

.hero__title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 0rem;
    top:20px;
}

.hero__subtitle {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* form panel */
.form-panel {
    padding: 1.75rem 1.5rem 1.5rem;
}

.input-group-custom {
    position: relative;
    margin-bottom: 1rem;
}

    .input-group-custom .bi {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: 1.1rem;
    }

.form-control-custom {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #faf9fd;
    padding: 0.85rem 2.9rem 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .form-control-custom::placeholder {
        color: var(--muted);
        font-weight: 500;
    }

    .form-control-custom:focus {
        outline: none;
        border-color: var(--brand-light);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
    }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.85rem;
}

.form-check-label {
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.forgot-link {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .forgot-link:hover {
        color: var(--brand);
    }

.btn-login {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    transition: filter 0.15s, transform 0.05s;
}

    .btn-login:hover {
        filter: brightness(1.05);
    }

    .btn-login:active {
        transform: translateY(1px);
    }

.signup-line {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

    .signup-line a {
        color: var(--brand);
        font-weight: 900;
        text-decoration: none;
    }

        .signup-line a:hover {
            text-decoration: underline;
        }

/* responsive tweaks */
@media (max-width: 400px) {
    .hero__logo-text {
        font-size: 1.6rem;
    }

    .hero__title {
        font-size: 1.3rem;
    }

    .hero__logo {
        margin-bottom: 5rem;
    }
}
