/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: auto;
}

h2, p {
    text-align: center;
    color: #444;
}

/* Header & Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #333;
}

.nav-links a {
    margin: 0 15px;
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #ff9800;
}

header {
    background-color: #20232a;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* Form Styling */
form {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin-top: 20px;
    animation: fadeIn 0.6s ease;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #555;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus, select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0px 0px 8px rgba(255, 152, 0, 0.5);
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #e68900;
}

p.login {
    text-align: center;
    margin-top: 10px;
    color: #555;
}

.loginlink {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
}

.loginlink:hover {
    color: #e68900;
}

/* Fancy Button Style */
button.go-back-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
    width: 100%;
    max-width: 150px;
    margin: 10px auto;
    transition: all 0.3s ease;
}

button.go-back-btn:hover {
    background-color: #444;
}

/* Error Message Styling */
.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    form {
        width: 90%;
        margin-top: 10px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex;
        border-radius: 5px;
        margin: 0px;
        padding: 10px;
        background-color: #f9f9f9; /* Adding a light background color for distinction */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for a modern touch */
    }

    .nav-links a  {
        margin-bottom: 8px;
        padding: 5px 4px;
        width: 100%;
        text-align: left;
        color: #333; /* Ensuring good contrast */
        font-size: 1rem;
        border: none;
        border-radius: 5px;
        background-color: #ffffff; /* White background for better readability */
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none; /* Remove underline for a cleaner look */
    }

    .nav-links a:hover {
        background-color: #e0e0e0; /* Optional: slight hover effect for better UX */
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
