/* login.css */

/* Container and overall layout */
.signin-container {
    display: flex;                /* Enable flex layout */
    flex-direction: column;       /* Stack children vertically */
    align-items: center;          /* Center children horizontally */
    max-width: 500px;             /* Reduced from 600px for a tighter window */
    margin: 40px auto;            /* Slightly reduced vertical margin */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;                /* Reduced padding for a more compact feel */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

.signin-container form {
    width: 100%;
}

/* Updated Header Section Styling */
.header-section {
    display: flex;               /* Use flex layout */
    flex-direction: column;      /* Stack elements vertically */
    align-items: center;         /* Ensure all items are centered horizontally */
    margin-bottom: 10px;         /* Space below the header section */
}
.header-section .logo {
    margin-bottom: 10px;         /* Increase space between logo and header text */
}
.header-section .logo img {
    display: block;              /* Block display for proper centering */
    margin: 0 auto;              /* Auto side margins center the image */
    max-width: 60px;             /* Adjusted size for the icon */
}

/* NEW h2 rule */
.header-section h2 {
    margin: 5px 0 10px;  /* 30px top margin pushes text down from the logo, 5px gap below the h2 */
    text-align: center;
  }


  .header-section p.subtext {
    margin: 0 0 0px;  /* Remove any top margin, keep bottom margin for spacing below */
    text-align: center;
    color: #666;
  }
  

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #007BFF;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.form-group input:focus {
    border-color: #0056b3;
    outline: none;
}

.forgot-link {
    display: block;
    text-align: right;
    margin-top: 8px; /* Adjust this value if you need more or less spacing */
    font-size: 0.85em;
    text-decoration: none;
    color: #007bff;
}

.toggle-password {
    position: absolute;
    top: 38px;
    right: 10px;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 15px;  /* Increased padding for a modern look */
    margin-top: 5px;
    border: none;
    border-radius: 6px;  /* Slightly more rounded corners */
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;  /* Smooth transition on hover */
}

.login-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
}

.cta {
    text-align: center;
    margin-top: 20px;
}

.cta a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

/* Ensure extra right padding in the input so text doesn't get hidden by the toggle */
.password-container input {
    padding-right: 50px;  /* Adjust as needed */
}

/* Style the toggle button to sit within the password field */
.toggle-password-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Size the toggle icon appropriately */
.toggle-password-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Tooltip styling on hover */
.toggle-password-btn:hover::after {
    content: "Toggle Password Visibility";
    position: absolute;
    top: -30px;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
}

/* Modern Divider Styling */
.modern-divider {
    width: 80%;  /* Make the divider shorter than full width */
    margin: 20px auto; /* Center it with vertical spacing */
    border: none;
    height: 1px;  /* Thinner than the original 2px */
    background: linear-gradient(90deg, #007BFF, #0056b3);
}

.error-message {
    background-color: #ffe6e6;  /* Light red/pink background for error visibility */
    border: 1px solid #ff4d4d;  /* Red border */
    color: #ff4d4d;             /* Red text */
    padding: 10px 15px;
    margin: 15px auto;          /* 15px vertical margin; centers the block if its width is less than 100% */
    border-radius: 4px;
    text-align: center;
    width: 90%;                 /* Adjust the width to fit nicely inside .signin-container */
    font-size: 0.95em;
}

