/* Importing Google Fonts - Inter for a clean, professional look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* General body styling for centering the login form */
body {
    background-color: #f2f5f9; /* Consistent with sign-up: Softer, professional light grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensure it takes full viewport height */
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #333; /* Default text color for better readability */
}

/* Container for the entire login page content (white card) */
.login-page-container {
    display: flex;
    flex-direction: column; /* Stack vertically on small screens */
    align-items: center;
    background-color: white; /* Main white background for the whole card */
    border-radius: 1rem; /* Consistent with sign-up: More pronounced rounded corners */
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 8px 15px -3px rgba(0, 0, 0, 0.08); /* Consistent with sign-up: Deeper, softer shadow */
    padding: 2rem; /* Consistent with sign-up: Increased padding inside the container */
    max-width: 960px; /* Consistent with sign-up: Slightly wider max-width */
    width: 100%;
    margin: 1.5rem; /* Consistent with sign-up: Increased margin around the card */
    position: relative; /* For positioning the close button */
    overflow: hidden; /* Ensures shadows and rounded corners are clean */
}

@media (min-width: 768px) {
    /* For medium screens and up, arrange content side-by-side */
    .login-page-container {
        flex-direction: row;
        padding: 3rem; /* Consistent with sign-up: More padding for larger screens */
        justify-content: space-between;
    }
}

/* Styles for the close button (X icon) */
.close-button {
    position: absolute;
    top: 1.5rem; /* Consistent with sign-up */
    left: 1.5rem; /* Consistent with sign-up */
    font-size: 2.5rem;
    color: #6b7280; /* Consistent with sign-up: Tailwind gray-500 for a softer look */
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease-in-out; /* Consistent with sign-up: Smooth transition on hover */
}

.close-button:hover {
    color: #4b5563; /* Consistent with sign-up: Darker gray on hover */
}

/* Styles for the main form container (the light green box) */
.login-form-container-bg {
    background-color: #eaf8f0; /* Consistent with sign-up: Softer, more professional light green */
    border: 1px solid #c8e6d9; /* Consistent with sign-up: Thinner, lighter border */
    border-radius: 0.75rem; /* Consistent with sign-up: Slightly larger rounded corners for the form box */
    padding: 2rem; /* Consistent with sign-up: Increased padding inside the form box */
    width: 100%; /* Take full width of its parent */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Consistent with sign-up: Subtle inner shadow */
}

/* Heading for "LOG IN" */
.login-form-container-bg h2 {
    font-size: 2.5rem; /* Consistent with sign-up: Slightly larger heading */
    font-weight: 800; /* Consistent with sign-up: Extra bold */
    color: #2c3e50; /* Consistent with sign-up: Darker, more professional blue-gray for heading */
    text-align: center;
    margin-bottom: 2rem; /* Consistent with sign-up: More space below heading */
    letter-spacing: -0.025em; /* Consistent with sign-up: Slightly tighter letter spacing */
}

/* Label for input fields */
.login-form-container-bg label {
    display: block;
    color: #4a5568; /* Consistent with sign-up: Gray-700 */
    font-size: 0.9rem; /* Consistent with sign-up: Slightly larger text */
    font-weight: 600; /* Consistent with sign-up: Semibold */
    margin-bottom: 0.4rem; /* Consistent with sign-up: More space below label */
}

/* Custom styling for input text fields */
.custom-input-field {
    border: 1px solid #d1d5db; /* Consistent with sign-up: Tailwind's border-gray-300 */
    padding: 0.75rem 1rem; /* Consistent with sign-up: py-3 px-4 for a more substantial feel */
    border-radius: 0.5rem; /* Consistent with sign-up: Rounded corners */
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    color: #374151; /* Consistent with sign-up: Tailwind's gray-700 for input text */
    background-color: #ffffff; /* Explicitly white background for inputs */
    transition: all 0.2s ease-in-out; /* Consistent with sign-up: Smooth transitions for focus */
}

.custom-input-field:focus {
    outline: none;
    border-color: #10b981; /* Consistent with sign-up: Your brand green for focus border */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); /* Consistent with sign-up: Softer green glow on focus */
}

/* Placeholder styling */
.custom-input-field::placeholder {
    color: #9ca3af; /* Consistent with sign-up: Tailwind's gray-400 for a softer placeholder */
}

/* Styling for the "LOG IN" button */
.login-btn {
  background-color: #10b981; /* green-500 */
  color: white;
  transition: all 0.3s ease;
}
.login-btn:hover {
  background-color: #059669; /* green-600 */
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(16,185,129,0.4);
}
.login-btn:active {
  background-color: #047857; /* green-700 */
  transform: translateY(0);
}

/* Checkbox styling for "Remember me" */
input[type="checkbox"] {
    transform: scale(1.1); /* Consistent with sign-up: Slightly larger checkbox */
    cursor: pointer;
    accent-color: #10b981; /* Consistent with sign-up: Changes the checkbox color to your brand green */
}

.logo-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid #10b981; /* green border */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* keep logo inside */
    background-color: white; /* para pantay background */
}

.swap-tayo-logo {
    width: 90%;
    height: auto;
    object-fit: contain; /* buo ang text */
}

/* Adjustments for the form side on larger screens */
.login-form-side {
    flex: 1.5; /* Form takes more space than the image side on larger screens */
    max-width: 500px; /* Max width for the form itself */
    width: 100%;
}

@media (min-width: 768px) {
    .login-form-side {
        padding-left: 3rem; /* Add spacing between image and form on desktop */
    }
}

.password-input-container {
            position: relative;
            width: 100%; /* I-adjust kung kinakailangan */
        }
        .password-input {
            width: 100%;
            padding-right: 40px; /* Dagdagan ang espasyo para sa icon */
        }
        .toggle-password {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #777;
        }

        .custom-input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.5rem;
  background-color: #fff;
  transition: all 0.2s ease;
}
.custom-input-field:focus {
  outline: none;
  border-color: #10b981; /* green-500 */
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

