/* ===============================================
   AUTHENTICATION PAGES STYLES
   =============================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body Styles for Auth Pages */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('/images/background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Auth Form Container */
section {
    position: relative;
    max-width: 500px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(55px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 3rem;
    transition: all 0.5s ease-in-out;
}

/* Form Title */
h1 {
    font-size: 2rem;
    color: #fff;
    text-align: center;
}

/* Input Container */
.inputbox {
    position: relative;
    margin: 20px 0;
    max-width: 550px;
    border-bottom: 2px solid #fff;
    transition: all 0.5s ease-in-out;
}

.inputbox input {
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0 35px 0 5px;
    color: #fff;
}

.inputbox i {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2rem;
    top: 12px;
    transition: all 0.5s ease-in-out;
}

.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}

/* Input Focus States */
input:focus ~ label,
input:valid ~ label {
    top: -5px;
    font-size: 0.9rem;
    color: #a8a8a8;
}

/* Form Button */
button {
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Register/Login Links */
.register {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
    transition: all 0.5s ease-in-out;
}

.register p a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.5s ease-in-out;
}

.register p a:hover {
    text-decoration: underline;
    color: #a8a8a8;
}

/* Message Styles */
.dialog-row {
    margin: 10px 0;
    text-align: center;
}

.redText {
    color: #ff4444;
    font-weight: 500;
    font-size: 0.9rem;
}

.greenText {
    color: #44ff44;
    font-weight: 500;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

/* Reset Password Links */
.reset-password {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    margin: 15px 0;
}

.reset-password a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.reset-password a:hover {
    text-decoration: underline;
    color: #a8a8a8;
}

/* ===============================================
   DASHBOARD/MAIN APPLICATION STYLES
   =============================================== */

/* Header Styles */
header {
    background-color: #4c78af;
    color: white;
    padding: 15px 10px;
    text-align: center;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
    background-color: #333;
}

nav a,
nav .nav-button {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
}

nav a:hover,
nav .nav-button:hover {
    background-color: #ddd;
    color: black;
}

/* Navigation Form Styles */
nav form {
    display: inline;
    margin: 0;
}

nav .nav-button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.nav-user {
    color: white;
    font-weight: 500;
    margin-right: 8px;
}

/* Main Content */
main {
    padding: 20px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
