:root {
    --color-navy: navy;
    --color-gold: #FFD700; /* Gold */
    --color-light-grey: #F5F5F5; /* Light Gray */
    --color-deep-blue: navy;
    --color-white: #fff; /* White */
    --color-medium-grey: navy;
    --highlight-gold: #f4b400; /* Highlight Gold */
    --shadow-color: navy;

    --background-gradient: linear-gradient(290deg, var(--color-navy), var(--color-deep-blue), var(--color-gold));
    --color-accent: linear-gradient(to right, var(--color-navy), var(--color-gold));
}

/* ================= Global Styles ================= */
html {
    box-shadow: 0 0 0 10px var(--color-gold); /* Gold border around the page */
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    margin: 0;
    padding-top: 90px; /* Increased padding for better spacing */
    background-color: var(--color-medium-grey); /* Dark background */
    color: var(--color-white); /* White text */
    text-align: center;
    box-sizing: border-box; /* Ensures consistent sizing */
}

/* ================= Header ================= */


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

header h1 {
    font-size: 24px;
    color: var(--highlight-gold); /* Gold */
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

/* Logo */
.logo img {
    width: 140px;
    height: auto;
}

/* ================= Login Container ================= */
.login-container {
    width: 100%; /* Make it responsive */
    max-width: 400px; /* Limit the maximum width for better layout */
    margin: 50px auto; /* Center the container */
    padding: 25px;
    background: var(--color-navy); /* Navy background */
    border-radius: 15px;
    border: 5px solid var(--color-gold); /* Gold border */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); /* Subtle gold glow */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Allow children to stretch to fill the container */
    box-sizing: border-box; /* Include padding and border in width/height */
}

/* ================= Input Fields ================= */
.input-box {
    position: relative;
    margin: 12px 0;
    width: 100%; /* Ensure it takes full width of the container */
}

.input-box input {
    width: 100%; /* Full width of the input box */
    padding: 12px 40px; /* Add padding for the icon */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background-color: var(--color-white); /* White background */
    color: var(--color-navy); /* Navy Blue Text */
    box-sizing: border-box; /* Include padding in width */
}

.input-box input:focus {
    border-color: var(--color-gold); /* Highlight border on focus */
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5); /* Glow effect on focus */
}

.input-box i {
    position: absolute;
    top: 50%; /* Centers the icon vertically */
    left: 10px; /* Positions the icon to the left */
    transform: translateY(-50%); /* Adjusts for perfect vertical alignment */
    font-size: 18px; /* Icon size */
    color: var(--color-navy); /* Navy color for the icon */
}

/* ================= Login Button ================= */
.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--highlight-gold); /* Gold */
    border: none;
    border-radius: 8px;
    font-size: 18px;
    color: var(--color-medium-grey); /* Dark Grey Text */
    cursor: pointer;
    transition: background 0.3s;
}
.btn{
    width: 100%;
    padding: .3rem;
    background: var(--highlight-gold); /* Gold */
    border: none;
    border-radius: 8px;
    font-size: 18px;
    color: var(--color-medium-grey); /* Dark Grey Text */
    cursor: pointer;
    transition: background 0.3s;
}
.login-btn:hover {
    background: var(--color-gold); /* Darker Gold on Hover */
}

/* ================= Login Link ================= */
.login-link {
    margin-top: 15px;
    font-size: 14px;
   
}

.login-link a {
    color: var(--highlight-gold); /* Gold */
    text-decoration: none;
}

/* ================= Color Switcher ================= */
.color-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
}

.color-switcher button {
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
/* Flash Message Styles */
.flash-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    color: var(--color-white);
    margin-top: 100px; /* Adjust this value based on your header height */
}

.flash-success {
    background-color: green; /* Green */
}

.flash-error {
    background-color: var(--color-gold); /* Red */
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-navy); /* Dark Blue */
    padding: 10px 0; /* Adjusted padding */
    z-index: 900;
    display: flex;
    justify-content: center;
    border-bottom: 3px solid var(--color-gold); /* Yellow line to separate the header */
}

/* Spacer for Header */
.header-spacer {
    height: 60px; /* Adjust this to match the height of your header */
}
  
  .flash-success {
    background-color: green; /* Green */
  }
  
  .flash-error {
    background-color: var(--color-gold); /* Red */
  }

/* ================= Image Container ================= */
.image-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Increased spacing */
    width: 100%;
    max-width: 800px;
    margin: 40px auto; /* Centering */
}

.image-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}

/* Bottom Image */
.bottom-image {
    width: 80%; /* Slightly reduced width for better alignment */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}

/* ================= Background Slideshow ================= */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    animation: slide 10s infinite;
}


/* ================= Responsive Adjustments ================= */
@media (max-width: 768px) {
    header .container {
        text-align: center;
    }

    header h1 {
        font-size: 20px;
    }

    .image-container {
        grid-template-columns: 1fr;
    }

    .login-container {
        width: 90%;
        max-width: grid; 
    }
}

@keyframes dance {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.input-box i {
    animation: dance 1s infinite; /* Apply the dance animation */
}

/* Styling for the App Features Section Heading */
/* App Features Section */
/* App Features Section */
.app-features {
    background-color: var(--color-navy);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    border-radius: 15px;
    border: 2px solid var(--color-gold);;
    border-bottom: 5px solid var(--color-gold); /* Yellow line below */
}

.app-features h2 {
    font-size: 2rem;
    color: orange; /* Changed color to orange */
    margin-bottom: 20px;
    text-transform: uppercase; /* Optional: Make the text uppercase */
    font-weight: bold;
}

/* Features Grid */
.features-grid {
    display: flex;
    justify-content: center; /* Center the features */
    align-items: center;
    height: 200px; /* Fixed height for the feature area */
    position: relative;
    overflow: hidden; /* Hide elements outside the container */
}

/* Feature Item */
.feature-item {
    position: absolute; /* Stack all features in one position */
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    animation: none; /* Animation will be triggered dynamically */
    transition: opacity 0.5s ease, transform 5s infinite ease;
}

.feature-item i {
    font-size: 2rem;
    color: var(--highlight-gold);
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-medium-grey);
}
nav {
    background-color: var(--color-navy);
    padding:  0;
    box-shadow: 0 2px 5px var(--shadow-color);
}

nav ul {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: space-between; /* right align */
}

nav ul li {
    margin-left: 0 15px;
    padding: 0 .3rem;
}

nav ul li a {
    color: var(--highlight-gold);
    text-decoration: none;
    font-size: 24px;
    transition: color .2s;
}

nav ul li a:hover {
    color: rgb(136, 120, 30);
}


/* Keyframes for Scatter Animation */
@keyframes scatterOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px) rotate(20deg);
    }
}

@keyframes scatterIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px) rotate(-20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.Forgot-password-btn, .Sign-up-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    background: var(--highlight-gold); /* Gold background */
    color: var(--color-medium-grey); /* Dark Grey Text */
    transition: background 0.3s ease;
}

.Forgot-password-btn:hover, .Sign-up-btn:hover {
    background: var(--color-gold); /* Darker Gold */
}