/* --- Global Styles & Variables --- */
:root {
    --primary-color: #8b5cf6; /* A shade of purple */
    --primary-color-dark: #7c3aed;
    --dark-bg: #2d2d2d;
    --dark-card-bg: #212121;
    --light-text: #ffffff;
    --secondary-text: #a0a0a0;
    --input-bg: #373737;
    --input-border: #4d4d4d;
    --font-family: 'Poppins', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    background:
        linear-gradient(to left, #8b5cf6cc 0%, #7c3aed88 40%, transparent 60%),
        url('/static/images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text);
}

/* --- Main Container Layout --- */
.register-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* --- Left Panel (Image) --- */
.left-panel {
    flex-basis: 55%;
    /* background-image: url('Background.jpg');
    background-size: cover;
    background-position: center; */
    position: relative;
    transition: flex-basis 0.5s ease-in-out;
}

/* --- Right Panel (Form) --- */
.right-panel {
    flex-basis: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: none;
    transition: flex-basis 0.5s ease-in-out;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    background: var(--dark-card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 40px;
    margin: 0 auto;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

/* --- Input Fields --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 48px; /* Left padding for icon */
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--input-border);
    color: var(--light-text);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: var(--secondary-text);
}

.input-group input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.password-container {
    position: relative;
}

.password-container .logo {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    transition: transform 0.1s ease;
}

.password-container input:focus ~ .logo {
    transform: translateY(-150px); /* Adjust the value as needed */
}
/* --- Options Group (Checkbox) --- */
.options-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.options-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--primary-color-dark);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* --- Separator --- */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--secondary-text);
    margin: 40px 0;
}

.separator .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--input-border);
}

.separator .text {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* --- Social Login --- */
.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--input-border);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary-color);
}

.social-btn img {
    width: 24px;
    height: 24px;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    color: #1877f2; /* Facebook Blue */
}

/* --- Alternative Action --- */
.alt-action {
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.alt-action a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.alt-action a:hover {
    color: var(--primary-color-dark);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .left-panel {
        flex-basis: 40%;
    }
    .right-panel {
        flex-basis: 60%;
    }
}

@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
    }

    .left-panel {
        display: none; /* Hide the image on small screens to focus on the form */
    }

    .right-panel {
        flex-basis: 100%;
        padding: 20px;
    }

    .form-wrapper {
        max-width: 100%;
    }
}