/* Rajasthan Desert Theme Variables */
:root {
    --desert-sand: #F5E6CA;
    --royal-maroon: #7E2811;
    --sunset-gold: #FDBF11;
    --earth-brown: #4A3B2A;
}

body {
    background-color: var(--desert-sand);
    font-family: 'Nunito', sans-serif;
}

.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* FLIP CARD CONTAINER */
.flip-container {
    background-color: transparent;
    width: 450px;
    height: 650px; /* Fixed height to accommodate both forms */
    perspective: 1000px; /* Adds depth for the 3D effect */
}

/* This container holds the front and back */
.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Class to trigger the flip */
.flipper.flipped {
    transform: rotateY(180deg);
}

/* Common Styles for Front and Back */
.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(126, 40, 17, 0.2); /* Maroon shadow */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* FRONT (Login) */
.flip-front {
    z-index: 2;
    transform: rotateY(0deg);
}

/* BACK (Register) */
.flip-back {
    transform: rotateY(180deg);
}

/* LOGO & FORM STYLING */
.auth-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.auth-title {
    color: var(--royal-maroon);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 25px;
}

.form-floating {
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--sunset-gold);
    box-shadow: 0 0 0 0.25rem rgba(253, 191, 17, 0.25);
}

.btn-maroon {
    background-color: var(--royal-maroon);
    color: var(--sunset-gold);
    border: none;
    padding: 12px;
    font-weight: bold;
    width: 100%;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-maroon:hover {
    background-color: #5e1e0d;
    color: #fff;
}

.switch-auth {
    margin-top: 20px;
    color: var(--earth-brown);
    cursor: pointer;
    font-weight: 600;
}

.switch-auth:hover {
    color: var(--royal-maroon);
    text-decoration: underline;
}

.google-btn {
    background-color: #db4437;
    color: white;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    border: none;
    margin-top: 15px;
}
.google-btn:hover { background-color: #c53929; color: white; }