﻿
:root {
    --red: rgb(209, 10, 10);
    --font: "Poppins", sans-serif;
    --dark-text: #1d3557;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font);
}

/* General Navbar Styling */
.navbar {
    background-color: #ffffff;
    padding: 10px 0;
    font-family: var(--font);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Left Side Items */
.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 100px;
    display: block;
}

.nav-link {
    text-decoration: none;
    color: var(--red);
    font-weight: 500;
}

/* Right Side Buttons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Login Link */
.btn-navlogin {
    text-decoration: none;
    color: var(--red);
    font-weight: 600;
    padding: 8px 16px;
}

/* Register Button */
.btn-register {
    text-decoration: none;
    background-color: var(--red);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-register:hover {
     filter: brightness(0.8);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; 
    background-color: #f8f9fa; 
}

#login-box, #register-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); 
    text-align: center;
    width: 450px; 
    max-width: 100%;
}

main h1 {
    color: #1a1a1a; 
    font-family: var(--font);
    font-size: 28px;
    margin-bottom: 8px;
}

main h4 {
    font-family: var(--font);
    color: #666;
    font-weight: 400;
    margin-bottom: 30px; 
}

main a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

 main a:hover {
     color: #a01e2c; 
 }

.login-form {
    width: 100%;
    font-family: var(--font);
}

.form-group {
    margin-bottom: 20px; 
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px; 
    color: #333;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #d1d5db; 
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--font);
    transition: all 0.2s ease; 
    background-color: #f9fafb; 
}

input:focus {
     outline: none;
     border-color: var(--red);
     background-color: white;
     box-shadow: 0 0 0 4px rgba(201, 42, 58, 0.1);
}

::placeholder {
    font-family: var(--font);
    color: #9ca3af; 
}

.password-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.password-wrapper input {
     padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #666;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.remember-me-container {
    display: flex; 
    align-items: center; 
    gap: 5px; 
    margin-bottom: 15px; 
}


.btn-login {
    background-color: var(--red);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px; 
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #a01e2c;
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(201, 42, 58, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

.error-text {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    display: none;
}

input.invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

input.invalid:focus {
     box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}