/* Base styles for the root component */
/* Removed body styles as they conflict with global layout */

/* Common utility classes based on React example */
.min-h-screen { min-height: 100vh; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-800 { background-color: #1F2937; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-700-50 { background-color: rgba(55, 65, 81, 0.5); } /* Equivalent to bg-gray-700/50 */
.bg-red-900-30 { background-color: rgba(153, 27, 27, 0.3); } /* Equivalent to bg-red-900/30 */
.bg-blue-600 { background-color: #2563EB; }
.bg-blue-700 { background-color: #1D4ED8; }
.bg-green-900-30 { background-color: rgba(20, 83, 45, 0.3); } /* Equivalent to bg-green-900/30 */
.bg-gray-600 { background-color: #4B5563; }
.bg-white { background-color: #FFFFFF; }


.text-gray-100 { color: #F3F4F6; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-white { color: #FFFFFF; }
.text-blue-400 { color: #60A5FA; }
.text-blue-300 { color: #93C5FD; }
.text-red-300 { color: #FCA5A5; }
.text-red-400 { color: #F87171; }
.text-green-400 { color: #4ADE80; }
.text-green-500 { color: #22C55E; }
.text-green-800 { color: #166534; }


.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; } /* 14px */
.text-base { font-size: 1rem; } /* 16px */
.text-lg { font-size: 1.125rem; } /* 18px */
.text-xl { font-size: 1.25rem; } /* 20px */
.text-2xl { font-size: 1.5rem; } /* 24px */


.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-0-5 { margin-top: 0.125rem; } /* Equivalent to mt-0.5 */


.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }


.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }


.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }


.border { border-width: 1px; border-style: solid; }
.border-gray-700 { border-color: #374151; }
.border-gray-600 { border-color: #4B5563; }
.border-green-800 { border-color: #166534; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-red-500 { border-color: #EF4444; }


.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.block { display: block; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }


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


.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }


.focus\:ring-2:focus { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color), 0 0 0 2px var(--tw-ring-offset-color); }
.focus\:outline-none:focus { outline: 0; }
.focus\:ring-blue-900:focus { --tw-ring-color: rgba(30, 64, 175, 0.9); } /* approximate blue-900 */
.focus\:ring-red-900:focus { --tw-ring-color: rgba(153, 27, 27, 0.9); } /* approximate red-900 */
.focus\:border-blue-500:focus { border-color: #3B82F6; }


.cursor-not-allowed { cursor: not-allowed; }

/* Custom animations from React example */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.3s ease-out forwards; }

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.0); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}
.animate-pulse-ring { animation: pulse-ring 2s infinite ease-in-out; }

/* Loading spinner specific styles */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hidden { display: none; }
.invisible { visibility: hidden; }

/* Specific overrides for button and input to match current styling and add new */
button {
    border: none;
    cursor: pointer;
}

input {
    background-color: #1F2937; /* Darker than body, lighter than button */
    color: #F3F4F6;
    padding: 0.75rem 1rem; /* px-4 py-2 */
    border-width: 1px;
    border-style: solid;
    border-color: #4B5563; /* border-gray-600 */
    border-radius: 0.375rem; /* rounded-md */
}
input::placeholder {
    color: #9CA3AF; /* text-gray-400 */
}

/* Original styles from password_reset.php, adapted */
/* Removed #isolated-password-reset-form and .auth-wrapper styles */
/* The main container will now be controlled by `passwordResetContainer` */

.auth-container {
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #FFFFFF; /* Original background */
}

.auth-title {
    color: #0A1A4A; /* Original color */
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-block {
    font-size: 13px;
    color: #555; /* Original color */
    text-align: center;
    margin-top: 15px;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* Specific styles for success message, mimicking React structure */
.success-message-container {
    width: 100%;
    max-width: 550px; /* Increased max-width */
    margin: 0 auto; /* Centering */
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #d4edda;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #d4edda;
    opacity: 0.5;
    animation: pulseIsolated 2s infinite;
}

.success-icon {
    width: 40px;
    height: 40px;
    stroke: #155724;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: bounceIsolated 0.6s;
}

.success-title {
    color: #155724;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

.success-text {
    color: #155724;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 0 15px;
}

.tips-block {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 15px 20px;
    margin: 0 25px 30px;
    border-radius: 8px;
    text-align: left;
    color: #155724;
    font-size: 13px;
}

.tips-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-block li {
    display: flex;
    align-items: start;
    margin-bottom: 8px;
}

.tips-block li:last-child {
    margin-bottom: 0;
}

.tips-block svg {
    width: 16px;
    height: 16px;
    stroke: #10b981;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Original animations, kept with Isolated suffix */
@keyframes fadeInIsolated {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIsolated {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-25px); }
    60% { transform: translateY(-15px); }
}

@keyframes pulseIsolated {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes spinIsolated {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-md */
    margin-bottom: 1rem; /* mb-4 */
    text-align: center;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.4;
    border-width: 1px;
    border-style: solid;
    animation: fadeInIsolated 0.3s ease forwards;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Removed body padding */
    /* Adjusted margins for passwordResetContainer to be directly applied */
    .password-reset-container-responsive {
        margin-bottom: 40px;
        max-width: 100%;
    }
    .auth-container {
        padding: 20px 15px;
        border-radius: 10px;
    }
    .auth-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .info-block {
        font-size: 12px;
        margin-top: 10px;
        margin-bottom: 30px;
    }
    .success-message-container {
        max-width: 100%;
        padding: 20px 15px;
    }
    .success-icon-wrapper {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
    }
    .success-icon {
        width: 35px;
        height: 35px;
    }
    .success-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .success-text {
        font-size: 13px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .tips-block {
        margin: 0 15px 25px;
        padding: 12px 16px;
    }
    .tips-block svg {
        width: 14px;
        height: 14px;
    }
}

#passwordResetContainer {
    max-width: 500px !important;
}

#successMessage {
    max-width: 500px !important;
} 