@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --bg-color: #fafafa;
    --bg-alt-color: #dfdfdf;
    --main-color: #8d0b41;
    --text-color: #42505a;
    --text-alt-color: #647887;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Montserrat", sans-serif;
}

/* BODY & HTML STYLES */
body, html {
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    overflow: hidden; 
}

/* --- KEYFRAMES --- */
@keyframes mapReveal {
    from { clip-path: inset(0 100% 0 0); transform: scale(1.1); }
    to { clip-path: inset(0 0 0 0); transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoEntrance {
    from { opacity: 0; transform: scale(0.8) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes formEntrance {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- LAYOUT --- */
.main-wrapper {
    display: flex;
    width: 100%;       
    min-height: 100vh; 
}

/* Left Panel Styling */
.hero-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bg-alt-color);
    position: relative; 
}

.map-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.map-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.9);
    animation: mapReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hero-text {
    height: 35%;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background-color: #fff;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-text h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #000;
}

.hero-text h1 span {
    color: var(--main-color);
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Right Panel Styling */
.auth-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff; 
}

.auth-card {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.brand-identity img {
    width: 90px;
    margin-bottom: 1rem;
    animation: logoEntrance 0.8s ease-out 0.6s both;
}

.auth-card h2 {
    color: var(--main-color);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: formEntrance 0.6s ease-out 0.7s both;
}

.auth-card .input-box:nth-of-type(1) { animation: formEntrance 0.6s ease-out 0.8s both; }
.auth-card .input-box:nth-of-type(2) { animation: formEntrance 0.6s ease-out 0.9s both; }

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -5px 5px 20px 5px;
    font-size: 0.85rem;
    color: var(--text-alt-color);
    animation: formEntrance 0.6s ease-out 1s both;
}

.btn-primary.login {
    animation: formEntrance 0.6s ease-out 1.1s both;
}

.divider {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    color: var(--text-alt-color);
    animation: formEntrance 0.6s ease-out 1.2s both;
}

.socials {
    animation: formEntrance 0.6s ease-out 1.3s both;
}

.input-box { position: relative; margin-bottom: 1.2rem; }

.input-box input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid var(--main-color);
    border-radius: 12px;
    background-color: var(--bg-alt-color);
    outline: none;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.input-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

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

.btn-google {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--main-color);
    border-radius: 10px;
    color: var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

@media (max-width: 850px) {
    .hero-section { display: none; }
}

.divider {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    color: var(--text-alt-color);
    font-size: 0.9rem;
    width: 100%; 
    animation: formEntrance 0.6s ease-out 1.2s both;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bg-alt-color);
}

.divider span {
    padding: 0 25px; 
    text-transform: lowercase; 
    font-weight: 500;
}
.redirect {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    animation: formEntrance 0.6s ease-out 1.4s both; 
}

.redirect a.signup {
    color: var(--main-color) !important;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.redirect a.signup:hover {
    text-decoration: underline;
    filter: brightness(1.2); 
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: formEntrance 0.6s ease-out 1.3s both;
}

.redirect {
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.redirect a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 700;
}