/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

/* Header */
.header {
  background: green;
  color: yellow;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
}

/* Container */
.container {
  display: flex;
  justify-content: flex-end;
  padding-right: 10%;
  align-items: center;
  height: calc(114vh - 70px);
  background: linear-gradient(168deg, #ffffff 0%, #f8f8f8 20%, #f0f0f0 40%, #e8e8b5 60%, #d4e6a0 80%, #c8e0a0 100%);
  background-repeat: no-repeat;
  background-position: 20% center;
  background-size: cover;
  background-attachment: fixed;
  padding: 1%;
  padding-top: 56px;
  position: relative;
}

/* Top-right info container */
.top-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 52px;
  background: rgba(3, 69, 144, 0.85);
  padding: 8px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 9999;
}

.top-info .info-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-info .info-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #000000;
}

/* Left container styling */
.left-container h1{
  position: absolute;
  top: 65%;
  left: 19%;
  font-size: 30px;
  font-style: italic;
  color:#2b2b2b;
}

/* Logo overlay on left container */
.left-container::before {
  content: '';
  position: absolute;
  top: 110px;
  left: 248px;
  width: 195px;
  height: 195px;
  background-image: url("../Images/logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 2;
}

.forgot-container {
    border-radius: 12px;
    padding: 2%;
    width: 100%;
    height: 90%;
    max-width: 380px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
    overflow: visible;
    opacity: calc(0.9);
    margin-right: 10%;
    z-index: 1;
}

/* Add a subtle overlay for better text readability */
.forgot-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  z-index: 1;
}

/* Ensure content is above the overlay */
.forgot-container > * {
  position: relative;
  z-index: 2;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Back button styling */
.btn.back-btn {
    width: auto;
    padding: 0.6rem 1.2rem;
    margin-bottom: 5%;
    margin-top: -5%;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

h2 {
    text-align: center;
    margin-top: 5%;
    color: #000000;
    margin-bottom: 1rem;
    font-size: 20px;
    font-weight: bold;
}
p {
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border 0.3s ease;
}

.input-group input:focus {
    border: 1px solid green;
    outline: none;
}

.btn {
    width: 60%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-weight: bold;
    font-size: 100%;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 2rem auto 0 auto;
    display: flex;
}

.btn:hover {
  background: linear-gradient(135deg, #2c5aa0 0%, #2c5aa0 100%);
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .forgot-container {
    padding: 1.5rem;
  }

  .header {
    font-size: 1.2rem;
  }
}