@import url(style.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* ===========================
   NAV & HEADER
   =========================== */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #2c5530;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
  position: relative;
  background: linear-gradient(135deg, #1e5128 0%, #2c7a3f 50%, #4e9f5e 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.header-background {
  position: absolute;
  inset: 0;
  background-image: url('/pictures/bansud.jpg');
  background-size: cover;
  background-position: bottom;
  opacity: 0.12;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo {
 width: 150px;
  height: 150px;
  margin-top: 40px;
  border-radius: 50%;           /* Circular logo */
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: fill;
  position: absolute;
  left: 100px;
  top: 4px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0.4rem 0 0;
}

.header-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0.15rem 0;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}

.header-subtitle {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.95;
}

.header-tagline {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.85;
  margin: 0;
}

/* ===========================
   NAVBAR STYLING
   =========================== */

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Center menu */
.nav-center {
    display: flex;
    gap: 20px;
}

/* Right-aligned profile */
.nav-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

/* Profile Circle */
.profile-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

/* Dropdown */
.profile-menu {
    position: relative;
    display: inline-block;
    outline: none;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    z-index: 1000;
}

/* Links inside dropdown */
.profile-dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.profile-dropdown a:hover {
    background: #f1f1f1;
}

/* ✅ Only show when clicked (focus) */
.profile-menu:focus-within .profile-dropdown {
    display: block;
}

/* ===========================
   MAIN CONTENT
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 300px);
  padding: 2rem;
}

.auth-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  border: 1px solid #e9ecef;
  position: relative;
}

.auth-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e5128 0%, #2c7a3f 50%, #4e9f5e 100%);
  border-radius: 16px 16px 0 0;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #2c5530;
  font-size: 1.8rem;
  font-weight: 700;
}

.auth-card p {
  text-align: center;
  margin-bottom: 2rem;
  color: #6c757d;
  font-size: 1.05rem;
}

.auth-form {
  margin-bottom: 2rem;
}

.auth-links {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.auth-links a {
  color: #2c5530;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #4a7c59;
  text-decoration: underline;
}

.error {
  margin-bottom: 1.5rem;
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
}

.success {
  margin-bottom: 1.5rem;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}

/* ===========================
   FORM ELEMENTS
   =========================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c5530;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5530;
  box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 45px !important;
}

.password-toggle-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: all 0.2s ease;
  user-select: none;
}

.password-toggle-icon:hover {
  transform: translateY(-50%) scale(1.1);
}

.eye-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2c5530 0%, #3d7043 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
  background: white;
  color: #2c5530;
  border: 2px solid #2c5530;
}

.btn-secondary:hover {
  background: #2c5530;
  color: white;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: #2c5530;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
  .header-title {
    font-size: 2rem;
  }

  .logo {
    margin-top: 80px;
    width: 120px;
    height: 120px;
  }

  .nav-center {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .container {
    padding: 2rem 1rem;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 2rem 1rem;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .logo {
    margin-top: 60px;
    width: 100px;
    height: 100px;
  }

  .nav-center {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .nav-right {
    right: 1rem;
  }

  .profile-text {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .auth-container {
    min-height: calc(100vh - 250px);
  }

  .auth-card {
    padding: 1.5rem;
  }

  .auth-card h2 {
    font-size: 1.4rem;
  }
}
