/* Body Styling */
body {
    background-image: url('image/background.jpg'); /* Set background image */
    background-size: cover; /* Ensure the image covers the whole screen */
    background-position: center; /* Center the image */
    background-attachment: fixed; /* Keep the image fixed while scrolling */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff; /* Text color to ensure visibility over the background */
}

/* Form Container Styling */
.form-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 500px;
    position: relative;
    padding: 20px; /* Increased padding to ensure space around the form */
    background-color: rgba(255, 255, 255, 0.8); /* Slight background overlay to make text more readable */
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Flip Card Styling */
.flip-card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card.flipped {
    transform: rotateY(180deg); /* Flip the card when toggled */
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Front and Back Styling */
.flip-card-front,
.flip-card-back {
    width: 100%;
    height: auto; /* Adjust the height to fit content */
    position: absolute;
    backface-visibility: hidden;
    padding: 20px; /* Reduce padding for better fit */
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-card-front {
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
    color: #333;
}

.flip-card-back {
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
    color: #333;
    transform: rotateY(180deg);
}

/* Heading Styles */
.form-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.form-container h3 {
    color: #ff7c4b;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Button Styles */
.btn-custom {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    font-size: 16px;
}

.btn-register {
    background-color: #ff7c4b;
    color: white;
}

.btn-register:hover {
    background-color: #ff5722;
}

.btn-login {
    background-color: #5cb85c;
    color: white;
}

.btn-login:hover {
    background-color: #4cae4c;
}

/* Link Styling */
a {
    color: #ff7c4b;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: #ff5722;
}

/* Input Styles */
.mb-3 input {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: 0.3s;
    font-size: 16px;
}

.mb-3 input:focus {
    border-color: #ff7c4b;
    outline: none;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 480px) {
    .form-container {
        width: 90%;
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .flip-card-front,
    .flip-card-back {
        padding: 15px; /* Reduce padding */
    }

    .form-container h2 {
        font-size: 20px;
    }

    .form-container h3 {
        font-size: 14px;
    }

    .mb-3 input {
        font-size: 14px;
        padding: 10px;
    }

    .btn-custom {
        font-size: 14px;
    }
}
