/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Navbar & Profile Section */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.profile-container {
    position: relative;
    cursor: pointer;
}

.profile-trigger {
    background: #eef2ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #2563eb;
    border: 1px solid #dbeafe;
    transition: 0.3s;
}

.profile-trigger:hover {
    background: #dbeafe;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: white;
    min-width: 150px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #ef4444; /* Red for logout */
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #fff1f2;
}

.profile-container:hover .dropdown-menu {
    display: block;
}

/* Form Container Styling */
.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
}

form h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #1e293b;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #1d4ed8;
}

/* Error/Success Messages */
.message {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}