/* Register Page Specific Styles - Iteration 4 (Split Screen) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --site-bg: #0f0f1a;
    --form-bg: #111111;
    --input-bg: transparent;
    --input-border: #333333;
    --text-color: #ffffff;
    --accent-color: #00bcd4;
    /* Site accent */
    --icon-color: #888888;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--site-bg);
    color: var(--text-color);
}

/* Main Layout - Split Screen */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Left Panel - Visuals */
.left-panel {
    width: 50%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.backanim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
        filter: blur(10px);
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    /* Fade to right */
    z-index: 1;
}

.runzoro {
    z-index: 2;
    position: absolute;
    width: 100px;
    height: 100px;
    right: 0;
    bottom: 0;
    animation: zoro 10s backwards infinite linear;
    transition: 0.5s;
    pointer-events: none;
}

@keyframes zoro {
    0% {
        bottom: 0;
        right: 0;
    }

    25% {
        bottom: 0;
        right: 88%;
    }

    50% {
        bottom: 90%;
        right: 85%;
    }

    75% {
        bottom: 90%;
        right: 0%;
    }

    100% {
        bottom: 0%;
        right: 0%;
    }
}

/* Right Panel - Form */
.right-panel {
    width: 50%;
    background-color: var(--form-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.form-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reg-header {
    text-align: center;
    margin-bottom: 20px;
}

.reg-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.reg-header h1 a {
    text-decoration: none;
    color: inherit;
}

.reg-header p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Input Styling with Icons */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    transition: border-color 0.3s;
    padding: 0 15px;
    height: 50px;
    margin-top: 3px;
}

.input-group:focus-within {
    border-color: var(--accent-color);
}

.input-group i {
    color: var(--icon-color);
    font-size: 1.1rem;
    margin-right: 15px;
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
}

.input-group input,
.input-group select {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    height: 100%;
    width: 100%;
    /* Ensure it fills space */
}

.input-group input::placeholder {
    color: #666;
}

/* Select Styling */
.input-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.input-group select option {
    background: var(--form-bg);
    color: #fff;
}

/* Button Styling */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #f44336;
    /* Dark gray default */
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--accent-color);
    /* Accent on hover */
    color: #000;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Loader */
.loader {
    width: 40px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side, var(--accent-color) 90%, #0000);
    background:
        var(--_g) 0% 50%,
        var(--_g) 50% 50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
    display: none;
    margin: 15px auto;
}

/* Ajratuvchi chiziq (или через) */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #666; /* Matn rangi (kulrang) */
    font-size: 14px;
    width: 100%;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #333; /* Chiziq rangi */
}

.divider span {
    padding: 0 10px;
}

/* Social tugmalar konteyneri */
.social-login {
    display: flex;
    gap: 15px; /* Tugmalar orasidagi masofa */
    width: 100%;
}

/* Umumiy tugma stili */
.social-btn {
    flex: 1; /* Uchala tugma teng kenglikda bo'ladi */
    height: 45px; /* Inputlar bilan bir xil balandlikda */
    border-radius: 8px; /* Inputlardagi kabi radius */
    border: 1px solid #333; /* Input chegarasi kabi */
    background-color: transparent; /* Orqa fon shaffof */
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effektlari (Brend ranglari) */
.social-btn:hover {
    transform: translateY(-2px); /* Biroz ko'tarilish effekti */
    border-color: transparent;
}

.social-btn.google:hover {
    background-color: #db4437;
    box-shadow: 0 4px 15px rgba(219, 68, 55, 0.3);
}

.social-btn.discord:hover {
    background-color: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.social-btn.twitter:hover {
    background-color: #1da1f2; /* Yoki qora #000 (X uchun) */
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

@keyframes l3 {
    20% {
        background-position: 0% 0%, 50% 50%, 100% 50%
    }

    40% {
        background-position: 0% 100%, 50% 0%, 100% 50%
    }

    60% {
        background-position: 0% 50%, 50% 100%, 100% 0%
    }

    80% {
        background-position: 0% 50%, 50% 50%, 100% 100%
    }
}

/* Responsive */
@media (max-width: 768px) {
    .left-panel {
        display: none;
        /* Hide image on mobile */
    }

    .right-panel {
        width: 100%;
    }
}