* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
    background-color: #f8f6f3;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(230, 92, 0, 0.85);
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: 
        0 0 20px rgba(230, 92, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease, 
                background-color 0.3s ease;
    background-image: linear-gradient(
        115deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0) 40%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0) 60%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: glass-shimmer 6s infinite ease-in-out;
}

.navbar:hover {
  transform: translateY(-4px) scale(1.005);
  background-color: rgba(230, 92, 0, 0.92);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 
              0 0 25px rgba(230, 92, 0, 0.7);
}

@keyframes glass-shimmer {
  0% { background-position: 180% 0; }
  30% { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}

.navleft {
    display: flex;
    align-items: center;
}

#logo {
    width: auto;
    height: 90px;
    margin: 12px;
}

#sitename {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.4);
}

/* --- FORM CENTERING & ALIGNMENT FIXES --- */
.formcontainer {
    flex: 1;
    display: flex;
    justify-content: center;   /* Center form horizontally */
    align-items: center;       /* Center form vertically */
    padding: 40px 20px;
}

.formcontainer form {
    width: 100%;
    max-width: 420px;          /* Clean fixed card width */
    display: flex;
    flex-direction: column;    /* Stack fields vertically */
    gap: 16px;                 /* Spacing between field groups */
    background-color: #ffffff;
    padding: 32px;
    border-radius: 20px;
    border: 3px solid #000000;
    box-shadow: 8px 8px 0px #e65c00;
}

/* Input Group Stack Fix */
.input-group {
    display: flex;
    flex-direction: column;    /* Stack label above input */
    gap: 6px;
    width: 100%;
}

.input-group label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;               /* Fill available width cleanly */
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    border: 3px solid #e65c00;
    background-color: #ffffff;
    color: #e65c00;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input::placeholder {
    color: rgba(230, 92, 0, 0.5);
    font-weight: 600;
}

.input-group input:focus {
    border-color: #ff8c00;
    box-shadow: 4px 4px 0px #000000;
}

/* Button & Footer */
.signupbtn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background-color: #e65c00;
    color: #ffffff;
    border: 3px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 5px 5px 0px #000000;
    transition: all 0.15s ease;
}

.signupbtn span {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #ffffff;
    -webkit-text-stroke: 1.5px #000000;
    text-shadow: 2px 2px 0px #000000;
}

.signupbtn:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 7px 7px 0px #000000;
}

.form-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.login-link {
    color: #e65c00;
    font-weight: 800;
    text-decoration: none;
    margin-left: 4px;
}

.login-link:hover {
    text-decoration: underline;
}

.error-msg {
    color: #ff3333; /* A bright, arcade-style red */
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* Leaves space for the eye icon */
}

.toggle-pass {
    position: absolute;
    right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #888888; /* Default muted color */
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: #ff6600; /* Arcade orange on hover */
}