﻿/* =============================================== */
/* ======         LOGIN & REGISTER         ====== */
/* =============================================== */

/* This body style is specific to login/register pages */
.login-register-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Hide scrollbars for the blob effect */
    background: var(--dark-gradient);
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
}

/* --- Animated Blobs Background --- */
.animated-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(100px);
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    background-color: var(--primary-color);
    width: 600px;
    height: 600px;
    top: -150px;
    left: -200px;
}

.blob-2 {
    background-color: var(--accent-red);
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -150px;
    animation-duration: 25s;
}

.blob-3 {
    background-color: var(--accent-yellow);
    width: 400px;
    height: 400px;
    top: 30%;
    right: 15%;
    animation-duration: 15s;
}

@keyframes float {
    from {
        transform: translate(20px, -30px) scale(0.9);
    }

    to {
        transform: translate(-40px, 50px) scale(1.1);
    }
}


/* --- Main Content Card --- */
.main-content {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1000px;
    /* Using the global glass-card style but overriding padding */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative; /* To be on top of blobs */
    z-index: 1;
}

.logo-side, .form-side {
    padding: 40px;
    flex: 1;
    min-width: 300px;
}

/* --- Logo Side --- */
.logo-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

    .logo-side h1 {
        font-size: 3rem;
        font-weight: 700;
        color: var(--white-text);
        margin-top: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .logo-side p {
        color: var(--light-text);
        opacity: 0.8;
        margin-top: 10px;
        font-size: 1.1rem;
    }

    .logo-side img {
        width: 180px;
        animation: pulse-logo 3s infinite ease-in-out;
    }

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


/* --- Form Side --- */
.form-side .card-header h4 {
    font-weight: 600;
    color: var(--white-text);
}

.form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 10px;
    padding: 1rem;
}

    .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--accent-yellow);
        box-shadow: 0 0 0 0.25rem rgba(255, 213, 45, 0.25);
        color: #fff;
    }

.form-floating > label {
    color: rgba(255, 255, 255, 0.6);
}

.form-check-input {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* Validation text uses accent yellow */
.text-warning {
    color: var(--accent-yellow) !important;
}

.card-footer a {
    color: var(--accent-yellow);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .card-footer a:hover {
        color: var(--white-text);
        text-decoration: underline;
    }

/* --- Password Toggle Icon --- */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--accent-yellow);
    font-size: 1.1rem;
    user-select: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .logo-side {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}
.form-text-helper {
    font-size: 0.8rem;
    text-align: right;
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
}

    .form-text-helper a {
        color: var(--accent-yellow);
        text-decoration: none;
    }

        .form-text-helper a:hover {
            text-decoration: underline;
        }