body {
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 20px;
    box-sizing: border-box;
}

.container {
    display: flex;
    width: 100%;
    max-width: 900px;
    max-height: 100vh;
    margin: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    animation: fadeIn 0.8s ease forwards;
}

/* Left panel (login) */
.left-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.login-box {
    width: 100%;
    max-width: 100%;
}

.login-box h6 {
    margin-bottom: 25px;
    margin-top: 10px;
    font-weight: 300;
    font-size: 20px;
    color: #777;
    animation: slideIn 0.8s ease forwards;
}

.form-group {
    margin-bottom: 20px;
    animation: slideIn 0.8s ease forwards;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 5px;
    outline: none;
    font-size: 15px;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    border-color: #3498db;
    /* light blue focus */
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
}

.toggle-password[aria-label]:hover::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 125%;
    right: 0;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.8;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-forgot input {
    margin-right: 6px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #5dade2);
    /* light blue gradient */
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(135deg, #2e86c1, #5499c7);
    /* darker on hover */
}

.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    display: none;
}

/* Social login buttons */
.social-login {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 14px;
    transition: background 0.3s ease;
    user-select: none;
}

.social-btn.google {
    background: #db4437;
}

.social-btn.google:hover {
    background: #c33d2e;
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.facebook:hover {
    background: #2d4373;
}

/* Right panel (decorative/video) */
.right-panel {
    flex: 1;
    background: linear-gradient(135deg, #3498db, #5dade2);
    /* light blue gradient */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

.right-panel::before,
.right-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.right-panel::before {
    width: 220px;
    height: 220px;
    top: -40px;
    right: -40px;
}

.right-panel::after {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}

.branding-image {
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.branding-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .right-panel {
        order: 1;
        height: auto;
        padding: 40px 30px;
        position: relative;
        background-color: #007bff;
        /* Optional: ensure the blue section stays distinct */
        color: white;
        /* Optional: make text readable */
        text-align: center;
    }

    .left-panel {
        order: 2;
        padding: 20px;
    }

    .right-panel::before,
    .right-panel::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        z-index: 0;
    }

    .right-panel::before {
        width: 120px;
        height: 180px;
        top: 0;
        right: -30px;
    }

    .right-panel::after {
        width: 100px;
        height: 100px;
        bottom: 0;
        left: -20px;
    }

    .right-panel>* {
        position: relative;
        z-index: 1;
        /* Ensure content appears above decorative shapes */
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}