﻿/* === Layout & Container === */
.login-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.register-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

/* Fade-in animation for entire login container */
.login-container {
    width: 768px;
    max-width: 100%;
    min-height: 580px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    background-color: #fff;
    transform: translateY(-10%);
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}

.register-container {
    width: 768px;
    max-width: 100%;
    min-height: 680px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    background-color: #fff;
    transform: translateY(-10%);
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}



@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-10%);
    }
}

/* === Form Containers === */
.login-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    text-align: center;
}

.login-sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.login-container.right-panel-active .login-sign-in-container {
    transform: translateX(100%);
}

.login-sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.login-container.right-panel-active .login-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: login-show 0.6s;
}

@keyframes login-show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

/* === Overlay === */
.login-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.login-container.right-panel-active .login-overlay-container {
    transform: translateX(-100%);
}

.login-overlay {
    background: #7494EC;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.login-container.right-panel-active .login-overlay {
    transform: translateX(50%);
}

.login-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transition: transform 0.6s ease-in-out;
}

.login-overlay-left {
    transform: translateX(-20%);
}

.login-container.right-panel-active .login-overlay-left {
    transform: translateX(0);
}

.login-overlay-right {
    right: 0;
    transform: translateX(0);
}

.login-container.right-panel-active .login-overlay-right {
    transform: translateX(20%);
}

/* === Social Icons === */
.login-social-container {
    margin: 20px 0;
}

    .login-social-container a {
        border: 1px solid #DDDDDD;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 0 5px;
        height: 40px;
        width: 40px;
    }

/* === Buttons === */
login-button {
    border-radius: 20px;
    border: 1px solid #7494EC !important;
    background-color: #7494EC !important;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

    button:active {
        transform: scale(0.95);
    }

    button:focus {
        outline: none;
    }

.login-ghost-btn {
    background-color: transparent;
    border-color: #FFFFFF;
}

/* === Inputs === */
input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
}

/* === Logo === */
.overlay-logo {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 180px;
    height: auto;
}

@media (max-width: 768px) {
    .overlay-logo {
        max-width: 120px;
    }
}


.signup-grid .mud-item {
    margin-bottom: 8px; /* or use padding if needed */
}
