/*
 * eLucknow - Tailwind utility compatibility CSS
 * Generated for login.php and register.php.
 * This file replaces only the Tailwind utility classes actually used
 * by these two pages. It does not require the Tailwind CDN.
 */

/* Layout */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.block { display: block; }

/* Spacing */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-6 { margin-top: 1.5rem; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-center { text-align: center; }

.text-white { color: #fff; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-600 { color: #2563eb; }
.text-green-700 { color: #15803d; }
.text-red-700 { color: #b91c1c; }

/* Backgrounds */
.bg-white { background-color: #fff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-100 { background-color: #fee2e2; }

/* Borders / radius */
.border { border-width: 1px; border-style: solid; }
.border-gray-300 { border-color: #d1d5db; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Shadow */
.shadow-xl {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.10),
        0 8px 10px -6px rgba(0, 0, 0, 0.10);
}

/* Form controls */
input[type="text"],
input[type="email"],
input[type="password"] {
    box-sizing: border-box;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px #3b82f6;
}

.focus\:ring-blue-500:focus {
    --el-focus-ring-color: #3b82f6;
}

/*
 * The two focus classes above are both present on the inputs.
 * Use a combined selector so the result matches Tailwind's
 * focus:ring-2 focus:ring-blue-500 behavior.
 */
.focus\:outline-none.focus\:ring-2.focus\:ring-blue-500:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Links */
.hover\:underline:hover {
    text-decoration: underline;
}

/* Buttons */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

/* reCAPTCHA spacing */
.g-recaptcha {
    display: block;
}

/* Responsive container behavior */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/*
 * Important for eLucknow:
 * login.php/register.php use .container together with px-4.
 * Keep the same centered page canvas while retaining the requested
 * 1rem horizontal padding.
 */
