﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn',sans-serif;
}

:root {
    --bg: #0f172a;
    --card: rgba(255,255,255,.06);
    --border: rgba(255,255,255,.15);
    --text: #fff;
    --muted: #94a3b8;
    --primary: #6366f1;
    --secondary: #06b6d4;
    --success: #22c55e;
}

body.light {
    --bg: #f8fafc;
    --card: rgba(255,255,255,.8);
    --border: rgba(0,0,0,.08);
    --text: #0f172a;
    --muted: #64748b;
}

body {
    background: var(--bg);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: .4s;
}

/* Aurora Background */

.aurora {
    position: fixed;
    inset: -30%;
    z-index: -1;
    filter: blur(120px);
    animation: rotate 20s linear infinite;
}

    .aurora::before,
    .aurora::after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
    }

    .aurora::before {
        background: #4f46e5;
        top: 10%;
        right: 10%;
    }

    .aurora::after {
        background: #06b6d4;
        bottom: 10%;
        left: 10%;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Main */

.container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.left {
    color: white;
    padding: 40px;
}

    .left h1 {
        font-size: 55px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .left p {
        font-size: 18px;
        color: #cbd5e1;
        line-height: 1.8;
    }

.badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge {
    padding: 12px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    color: white;
}

/* Card */

.card {
    background: var(--card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg,#6366f1,#06b6d4);
    box-shadow: 0 15px 30px rgba(99,102,241,.4);
}

.title {
    text-align: center;
    margin-top: 20px;
    color: var(--text);
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin-top: 10px;
    margin-bottom: 35px;
}

/* Inputs */

.group {
    margin-bottom: 20px;
}

.input {
    width: 100%;
    height: 60px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    padding: 0 20px;
    font-size: 15px;
    color: var(--text);
    transition: .3s;
}

    .input:focus {
        outline: none;
        border-color: #06b6d4;
        box-shadow: 0 0 0 5px rgba(6,182,212,.15);
    }

.password-box {
    position: relative;
}

.eye {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
}

/* Strength */

.strength {
    height: 6px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    margin-top: 10px;
}

.bar {
    height: 100%;
    width: 0;
    transition: .3s;
    background: linear-gradient(90deg,#ef4444,#f59e0b,#22c55e);
}

/* Options */

.options {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 14px;
    color: var(--muted);
}

    .options a {
        color: #38bdf8;
        text-decoration: none;
    }

/* Button */

.login-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg,#6366f1,#06b6d4);
    transition: .3s;
}

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(99,102,241,.4);
    }

/* Divider */

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--muted);
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .divider span {
        padding: 0 12px;
    }

/* Social */

.socials {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.social {
    height: 55px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: .3s;
}

    .social:hover {
        transform: translateY(-2px);
    }

/* Theme */

.theme {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

/* Responsive */

@media(max-width:950px) {

    .container {
        grid-template-columns: 1fr;
    }

    .left {
        display: none;
    }

    .card {
        padding: 30px;
    }
}