* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

@keyframes fadeInBox {
    from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), 
                url("Images/Pulisbg.png") center/cover no-repeat;
    color: white;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
}

.left-header {
    display: flex;
    align-items: center;
}

.icon_logo {
    width: 60px;
    margin-right: 10px;
}

.icon {
    width: 45px;
    margin-right: 14px;
}

.text-container { line-height: 1.2; }
.left-text1 { font-size: 13px; letter-spacing: 1px; }
.left-text2 { font-size: 18px; font-weight: 700; }

/* NAV */
.right-nav1 a {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.right-nav1 a:hover {
    transform: scale(1.1); 
    background: #1c60c6; 
    border-color: #f1f5f9;
    color: #f1f5f9;
    box-shadow: 0 8px 20px rgba(105, 104, 104, 0.3);
}

/* LOGIN BOX */
.box {
    width: 400px;
    padding: 60px 30px 35px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    animation: fadeInBox 0.9s ease forwards;
}

/* AVATAR */
.avatar {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #bfc7ce;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BOX CONTENT */
.box h2 { margin-bottom: 22px; letter-spacing: 2px; }
.box p { margin: 10px 0 20px; }

/* Input container styles */
.input-container {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
}

/* Both email and password inputs */
.input-container input[type="email"],
.input-container input[type="password"],
.input-container input[type="text"] {
    width: 100%;
    padding: 12px 45px 12px 45px; /* Space for both icons */
    border-radius: 10px;
    border: none;
    font-size: 14px;
    height: 45px;
    box-sizing: border-box;
    background-color: white;
    color: #333;
}

.input-container input:focus { 
    outline: none; 
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.5);
}

/* Left icons (email and lock) */
.input-icon.left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.input-icon.left img { 
    width: 18px; 
    height: 18px; 
    
}

/* Right icon (eye for password toggle) */
.input-icon.right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.input-icon.right:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.input-icon.right img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Para hindi ma-block ang click sa span */
}

.input-icon.right:hover img {
    opacity: 1;
}

/* Hide browser's default password eye */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-view-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* BUTTON */
.box button {
    background: #2f80ed;
    color: white;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.4s ease; 
    width: 80%;
    display: inline-block;
}

.box button:hover {
    transform: scale(1.1); 
    background: #1c60c6; 
    border-color: #f1f5f9;
    color: #f1f5f9;
    box-shadow: 0 8px 20px rgba(105, 104, 104, 0.3);
}

/* LINKS */
.box a {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

.box a:hover { text-decoration: underline; }

/* MODAL ALERT BOX*/
.alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.alert-box {
  background: #efeeee;
  width: 320px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  animation: pop 0.3s ease;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.alert-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.alert-box h3 {
  color: #c0392b;
  margin-bottom: 8px;
}

.alert-box p {
  color: #555;
  font-size: 14px;
}

.alert-box button {
  margin-top: 15px;
  padding: 8px 22px;
  border: none;
  border-radius: 6px;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
}

.alert-box button:hover {
  background: #a93226;
}

@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}




.input-error {
    border: 2px solid #f44336;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s;
}



.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.alert-box {
    background: white;
    border-radius: 15px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.alert-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.alert-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000000;
}

.alert-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-box button {
    background: #2f80ed;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.alert-box button:hover {
    background: #1c60c6;
}

        /* Error specific */
.error-icon {
    color: #e74c3c;
}

.error-title {
    color: #c0392b;
}

        /* Success specific */
.success-icon {
    color: #27ae60;
}

.success-title {
    color: #27ae60;
}

        /* Input error styles */
.input-error {
    border: 2px solid #e74c3c !important;
    background-color: rgba(255, 255, 255, 0.827) !important;

}

.input-error:focus {
    outline: 1px solid #e74c3c !important;
}