@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --background: #f0f4ff;
    --color: #2d3748;
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8ecf8 50%, #f5f0ff 100%);
    min-height: 100vh;
    color: var(--color);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--color);
}

h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    position: relative;
    width: 24rem;
}

.form-container {
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    z-index: 99;
    padding: 2.5rem;
}

.login-container .inpForm input {
    display: block;
    padding: 14px 18px;
    width: 100%;
    margin: 1.8rem 0;
    color: #1e293b;
    outline: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.login-container .inpForm input::placeholder {
    color: #94a3b8;
}

.login-container .inpForm input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    animation: wobble 0.3s ease-in;
}

.login-container .inpForm button {
    background: var(--primary-gradient);
    color: #fff;
    display: block;
    padding: 14px;
    border-radius: 12px;
    outline: none;
    font-size: 17px;
    letter-spacing: 1px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.login-container .inpForm button:hover {
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.login-container .inpForm button:active {
    transform: translateY(0);
}

.circle {
    width: 8rem;
    height: 8rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    position: absolute;
    opacity: 0.25;
    filter: blur(2px);
}

.illustration {
    position: absolute;
    top: -14%;
    right: 100px;
    width: 46%;
}

.circle-one {
    top: 0;
    left: 0;
    z-index: -1;
    transform: translate(-45%, -45%);
}

.circle-two {
    bottom: 0;
    right: 0;
    z-index: -1;
    transform: translate(45%, 45%);
}

.register-forget {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.opacity {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.opacity:hover {
    opacity: 1;
}

.theme-btn-container {
    position: absolute;
    left: 0;
    bottom: 2rem;
}

.theme-btn {
    cursor: pointer;
    transition: all 0.3s ease-in;
}

.theme-btn:hover {
    width: 40px !important;
}

@keyframes wobble {
    0% {
        transform: scale(1.02);
    }

    25% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 595px) {
    .inpForm {
        margin-top: 200px;
    }

    .login-container {
        width: 90vw;
    }
}

svg {
    overflow: visible;
    width: 100px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
}

svg g {
    animation: slide 2s linear infinite;
}

svg g:nth-child(2) {
    animation-delay: 0.5s;
}

svg g:nth-child(2) path {
    animation-delay: 0.5s;
    stroke-dasharray: 0px 158px;
    stroke-dashoffset: 1px;
}

svg path {
    stroke: url(#gradient);
    stroke-width: 20px;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 0 157px;
    stroke-dashoffset: 0;
    animation: escalade 2s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

@keyframes slide {
    0% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(50px);
    }
}

@keyframes escalade {
    0% {
        stroke-dasharray: 0 157px;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 157px 157px;
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dasharray: 157px 157px;
        stroke-dashoffset: -156px;
    }
}