﻿:root {
    --text-light: #ffffff;
    --accent-color: #7B4CE3;
    --accent-gradient: linear-gradient(to right, #6a3de8, #a47bff);
    --button-gradient: linear-gradient(to right, #4169e1, #9370db);
    --input-bg: rgba(255, 255, 255, 0.1);
    --form-bg: rgba(30, 19, 54, 0.65);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.signin-container {
    width: 100vw;
    height: 100vh;
    background: url('https://s3.ap-south-1.amazonaws.com/akrgamingstudio.com/Images/Background+Image+(1).png') no-repeat center center;
    background-size: cover;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Left section with tagline */
.tagline-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.tagline {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.highlight {
    display: block;
    color: var(--accent-color);
}

/* Right section with form */
.form-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.form-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--form-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

    .form-container h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
    }

/* Role selection */
.role-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .role-option input[type="radio"] {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        position: relative;
        margin: 0;
        cursor: pointer;
    }

        .role-option input[type="radio"]:checked {
            border-color: var(--accent-color);
        }

            .role-option input[type="radio"]:checked::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background-color: var(--accent-color);
            }

    .role-option span {
        font-size: 1rem;
    }

/* Form inputs */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 1rem;
    }

.input-with-icon {
    position: relative;
    width: 100%;
}

.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: var(--input-bg);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
}

    .input-with-icon input[type="password"] {
        padding: 15px 45px 15px 15px;
    }

    .input-with-icon input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .input-with-icon input:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(123, 76, 227, 0.5);
    }

/* Remember me and Forgot password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember-me input[type="checkbox"] {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        position: relative;
        cursor: pointer;
    }

        .remember-me input[type="checkbox"]:checked {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
        }

            .remember-me input[type="checkbox"]:checked::after {
                content: "✓";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                font-size: 12px;
                color: white;
            }

.forgot-password {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* Social login */
.social-login {
    margin-bottom: 25px;
}

.social-text {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

    .social-text::before,
    .social-text::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 30%;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .social-text::before {
        left: 0;
    }

    .social-text::after {
        right: 0;
    }

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--input-bg);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .social-button:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .social-button img {
        width: 20px;
        height: 20px;
    }

/* Login button */
.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--button-gradient);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
    }

/* Signup link */
.signup-link {
    text-align: center;
    font-size: 0.9rem;
}

    .signup-link a {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 600;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

/* Spinner */
.spinner-border-sm {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-right: 8px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .signin-container {
        flex-direction: column;
    }

    .tagline-section,
    .form-section {
        width: 100%;
    }

    .tagline-section {
        height: 30%;
    }

    .form-section {
        height: 70%;
    }

    .tagline {
        font-size: 2.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 25px;
    }

    .tagline {
        font-size: 2rem;
    }

    .form-container h2 {
        font-size: 2rem;
    }

    .social-buttons {
        flex-direction: column;
    }
}
